Skip to content

Commit d6b53b8

Browse files
committed
chore: also skip builder image build on non-linux
Signed-off-by: Ondrej Dockal <odockal@redhat.com>
1 parent e742f88 commit d6b53b8

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

.github/workflows/build.yaml

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -42,25 +42,26 @@ jobs:
4242
run: pnpm build
4343

4444
- name: Login to quay.io
45-
if: ${{ inputs.registry == 'quay' }} && ${{ runner.os == 'linux' }}
45+
if: inputs.registry == 'quay' && runner.os == 'Linux'
4646
run: podman login --username ${{ secrets.QUAY_ROBOT_NAME }} --password ${{ secrets.QUAY_ROBOT_TOKEN }} quay.io
4747

4848
- name: Login to ghcr.io
49-
if: ${{ inputs.registry == 'ghcr' }} && ${{ runner.os == 'linux' }}
49+
if: inputs.registry == 'ghcr' && runner.os == 'Linux'
5050
run: podman login --username ${{ github.repository_owner }} --password ${{ secrets.GITHUB_TOKEN }} ghcr.io
5151

5252
- name: Build builder-image
53+
if: runner.os == 'Linux'
5354
run: podman build -t ghcr.io/redhat-developer/podman-desktop-redhat-account-ext-builder:next . -f ./build/Containerfile.builder
5455

5556
- name: Build and Push Image (quay.io)
56-
if: ${{ inputs.registry == 'quay' }} && ${{ runner.os == 'linux' }}
57+
if: inputs.registry == 'quay' && runner.os == 'Linux'
5758
id: build-image-quay
5859
run: |
5960
podman build -t quay.io/redhat-developer/podman-desktop-redhat-account-ext:${{ inputs.ext-version }} . -f ./build/Containerfile
6061
podman push quay.io/redhat-developer/podman-desktop-redhat-account-ext:${{ inputs.ext-version }}
6162
6263
- name: Build and Push Image (ghcr.io)
63-
if: ${{ inputs.registry == 'ghcr' }} && ${{ runner.os == 'linux' }}
64+
if: inputs.registry == 'ghcr' && runner.os == 'Linux'
6465
id: build-image-ghcr
6566
run: |
6667
podman build -t ghcr.io/redhat-developer/podman-desktop-redhat-account-ext:next . -f ./build/Containerfile

0 commit comments

Comments
 (0)