Skip to content

Commit e742f88

Browse files
committed
chore: build and push images on linux only
Signed-off-by: Ondrej Dockal <odockal@redhat.com>
1 parent 307fe37 commit e742f88

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

.github/workflows/build.yaml

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

4444
- name: Login to quay.io
45-
if: ${{ inputs.registry == 'quay' }}
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' }}
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
5353
run: podman build -t ghcr.io/redhat-developer/podman-desktop-redhat-account-ext-builder:next . -f ./build/Containerfile.builder
5454

5555
- name: Build and Push Image (quay.io)
56-
if: ${{ inputs.registry == 'quay' }}
56+
if: ${{ inputs.registry == 'quay' }} && ${{ runner.os == 'linux' }}
5757
id: build-image-quay
5858
run: |
5959
podman build -t quay.io/redhat-developer/podman-desktop-redhat-account-ext:${{ inputs.ext-version }} . -f ./build/Containerfile
6060
podman push quay.io/redhat-developer/podman-desktop-redhat-account-ext:${{ inputs.ext-version }}
6161
6262
- name: Build and Push Image (ghcr.io)
63-
if: ${{ inputs.registry == 'ghcr' }}
63+
if: ${{ inputs.registry == 'ghcr' }} && ${{ runner.os == 'linux' }}
6464
id: build-image-ghcr
6565
run: |
6666
podman build -t ghcr.io/redhat-developer/podman-desktop-redhat-account-ext:next . -f ./build/Containerfile

0 commit comments

Comments
 (0)