Testing changes

This commit is contained in:
Kieran Eglin 2024-03-28 16:11:27 -07:00
parent f3fcf3b7c7
commit d8a4c5218a
No known key found for this signature in database
GPG key ID: 193984967FCF432D

View file

@ -1,6 +1,16 @@
name: Release name: Docker Release
on: on:
workflow_dispatch:
inputs:
platforms:
type: choice
description: 'Build Platforms'
required: true
default: 'linux/amd64'
options:
- 'linux/amd64'
- 'linux/amd64,linux/arm64'
push: push:
branches: branches:
- master - master
@ -52,12 +62,20 @@ jobs:
username: ${{ github.actor }} username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }} password: ${{ secrets.GITHUB_TOKEN }}
- name: Echo outputs
run: |
echo "${{ steps.meta.outputs.tags }}"
echo "${{ steps.meta.outputs.labels }}"
echo "${{ github.event.inputs.platforms }}"
echo "${{ steps.meta.outputs.tags || 'master' }}"
echo "${{ github.event.inputs.platforms || 'linux/amd64,linux/arm64' }}"
- name: Build and Push - name: Build and Push
uses: docker/build-push-action@v5 uses: docker/build-push-action@v5
with: with:
context: . context: .
file: ./selfhosted.Dockerfile file: ./selfhosted.Dockerfile
platforms: linux/amd64,linux/arm64 platforms: ${{ github.event.inputs.platforms || 'linux/amd64,linux/arm64' }}
push: true push: false # TODO: Set to true once everything is proven to work
tags: ${{ steps.meta.outputs.tags }} tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }} labels: ${{ steps.meta.outputs.labels }}