From 2db85ded335e3f27e0cf8bf5f02130f59741db74 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Martin=20Storsj=C3=B6?= Date: Fri, 9 Jun 2023 14:42:38 +0300 Subject: [PATCH] WIP: github: Run the docker job on push too --- .github/workflows/docker.yml | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/.github/workflows/docker.yml b/.github/workflows/docker.yml index 740e9be1..df45a949 100644 --- a/.github/workflows/docker.yml +++ b/.github/workflows/docker.yml @@ -1,5 +1,6 @@ name: Build docker images on: + push: workflow_dispatch: inputs: commit: @@ -24,6 +25,7 @@ jobs: TAG: ${{steps.get-parameters.outputs.TAG}} steps: - name: Download artifacts + if: github.event_name == 'workflow_dispatch' uses: dawidd6/action-download-artifact@v2 with: workflow: build.yml @@ -35,7 +37,11 @@ jobs: - name: Fetch build variables id: get-parameters run: | - cat parameters.txt >> $GITHUB_OUTPUT + if [ -f parameters.txt ]; then + cat parameters.txt >> $GITHUB_OUTPUT + else + echo TAG=test >> $GITHUB_OUTPUT + fi cat $GITHUB_OUTPUT docker-build: @@ -61,7 +67,7 @@ jobs: uses: docker/build-push-action@v4 with: context: . - push: ${{inputs.push}} + push: ${{ (github.event_name == 'workflow_dispatch' && inputs.push) || false }} file: ./${{matrix.file}} tags: | mstorsjo/llvm-mingw:${{matrix.maintag}}