Skip to content

Commit 2ed4f92

Browse files
committed
fix schedule workflow to select correct input
1 parent a32fc53 commit 2ed4f92

File tree

1 file changed

+3
-5
lines changed

1 file changed

+3
-5
lines changed

.github/workflows/docker-publish.yml

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -23,8 +23,6 @@ on:
2323

2424
jobs:
2525
build:
26-
with:
27-
container: ${{ inputs.container || 'all' }}
2826
runs-on: ubuntu-latest
2927
steps:
3028
- name: Checkout
@@ -39,7 +37,7 @@ jobs:
3937
uses: docker/setup-buildx-action@v3
4038

4139
- name: Build and push lite
42-
if: ${{ github.event.inputs.container == 'all' || github.event.inputs.container == 'lite' }}
40+
if: ${{ github.event.inputs.container == 'all' || github.event.inputs.container == 'lite' || github.event.inputs.container == '' }}
4341
uses: docker/build-push-action@v6
4442
with:
4543
context: .
@@ -48,7 +46,7 @@ jobs:
4846
tags: ${{ secrets.DOCKERHUB_USERNAME }}/pretext:lite
4947

5048
- name: Build and push small
51-
if: ${{ github.event.inputs.container == 'all' || github.event.inputs.container == 'small' }}
49+
if: ${{ github.event.inputs.container == 'all' || github.event.inputs.container == 'small' || github.event.inputs.container == ''}}
5250
uses: docker/build-push-action@v6
5351
with:
5452
context: .
@@ -57,7 +55,7 @@ jobs:
5755
tags: ${{ secrets.DOCKERHUB_USERNAME }}/pretext:small
5856

5957
- name: Build and push full
60-
if: ${{ github.event.inputs.container == 'all' || github.event.inputs.container == 'full' }}
58+
if: ${{ github.event.inputs.container == 'all' || github.event.inputs.container == 'full' || github.event.inputs.container == '' }}
6159
uses: docker/build-push-action@v6
6260
with:
6361
context: .

0 commit comments

Comments
 (0)