Skip to content

Commit e463e99

Browse files
committed
WIP: github: Manually rerun the docker build for the latest tag
1 parent 50acc9e commit e463e99

File tree

1 file changed

+12
-11
lines changed

1 file changed

+12
-11
lines changed

.github/workflows/docker.yml

Lines changed: 12 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
name: Build docker images
22
on:
3+
push:
34
workflow_dispatch:
45
inputs:
56
commit:
@@ -29,8 +30,8 @@ jobs:
2930
with:
3031
workflow: build.yml
3132
workflow_conclusion: success
32-
commit: ${{inputs.commit}}
33-
branch: ${{inputs.branch}}
33+
commit: 73e313146e7cef5f7af5e9507f842313b318a423
34+
branch:
3435
event: push
3536
name: parameters
3637
- name: Get build parameters
@@ -45,9 +46,9 @@ jobs:
4546
steps:
4647
- uses: actions/checkout@v4
4748
with:
48-
ref: ${{ (inputs.commit != '' && inputs.commit) || inputs.branch }}
49+
ref: 73e313146e7cef5f7af5e9507f842313b318a423
4950
- name: Log in to Docker Hub
50-
if: ${{inputs.login}}
51+
if: true
5152
uses: docker/login-action@v3
5253
with:
5354
username: ${{secrets.DOCKER_USERNAME}}
@@ -56,7 +57,7 @@ jobs:
5657
uses: docker/build-push-action@v5
5758
with:
5859
context: .
59-
push: ${{inputs.push}}
60+
push: true
6061
file: ./Dockerfile.dev
6162
tags: |
6263
mstorsjo/llvm-mingw:dev
@@ -77,15 +78,15 @@ jobs:
7778
steps:
7879
- uses: actions/checkout@v4
7980
with:
80-
ref: ${{ (inputs.commit != '' && inputs.commit) || inputs.branch }}
81+
ref: 73e313146e7cef5f7af5e9507f842313b318a423
8182
- name: Download toolchain
8283
if: ${{matrix.file == 'Dockerfile.toolchain'}}
8384
uses: dawidd6/action-download-artifact@v6
8485
with:
8586
workflow: build.yml
8687
workflow_conclusion: success
87-
commit: ${{inputs.commit}}
88-
branch: ${{inputs.branch}}
88+
commit: 73e313146e7cef5f7af5e9507f842313b318a423
89+
branch:
8990
event: push
9091
name: linux-ucrt-.*
9192
name_is_regexp: true
@@ -98,7 +99,7 @@ jobs:
9899
- name: Set up Docker Buildx
99100
uses: docker/setup-buildx-action@v3
100101
- name: Log in to Docker Hub
101-
if: ${{inputs.login}}
102+
if: true
102103
uses: docker/login-action@v3
103104
with:
104105
username: ${{secrets.DOCKER_USERNAME}}
@@ -109,7 +110,7 @@ jobs:
109110
with:
110111
context: .
111112
platforms: ${{matrix.platforms}}
112-
push: ${{inputs.push}}
113+
push: true
113114
file: ./${{matrix.file}}
114115
outputs: |
115116
type=image,name=mstorsjo/llvm-mingw,push-by-digest=true,name-canonical=true
@@ -125,7 +126,7 @@ jobs:
125126
docker-create:
126127
needs: [docker-build, prepare]
127128
runs-on: ubuntu-latest
128-
if: ${{inputs.push}}
129+
if: true
129130
steps:
130131
- uses: cloudposse/github-action-matrix-outputs-read@main
131132
id: read

0 commit comments

Comments
 (0)