Testing changes
This commit is contained in:
parent
f3fcf3b7c7
commit
d8a4c5218a
1 changed files with 21 additions and 3 deletions
|
|
@ -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 }}
|
||||||
Loading…
Reference in a new issue