Skip to content

Commit

Permalink
Revert "WIP: github: Run the docker job on push too"
Browse files Browse the repository at this point in the history
This reverts commit ec9315a.
  • Loading branch information
mstorsjo committed Sep 6, 2023
1 parent 2db85de commit 0d62c21
Showing 1 changed file with 2 additions and 8 deletions.
10 changes: 2 additions & 8 deletions .github/workflows/docker.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
name: Build docker images
on:
push:
workflow_dispatch:
inputs:
commit:
Expand All @@ -25,7 +24,6 @@ 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
Expand All @@ -37,11 +35,7 @@ jobs:
- name: Fetch build variables
id: get-parameters
run: |
if [ -f parameters.txt ]; then
cat parameters.txt >> $GITHUB_OUTPUT
else
echo TAG=test >> $GITHUB_OUTPUT
fi
cat parameters.txt >> $GITHUB_OUTPUT
cat $GITHUB_OUTPUT
docker-build:
Expand All @@ -67,7 +61,7 @@ jobs:
uses: docker/build-push-action@v4
with:
context: .
push: ${{ (github.event_name == 'workflow_dispatch' && inputs.push) || false }}
push: ${{inputs.push}}
file: ./${{matrix.file}}
tags: |
mstorsjo/llvm-mingw:${{matrix.maintag}}
Expand Down

0 comments on commit 0d62c21

Please sign in to comment.