Skip to content

Commit

Permalink
fix: docker login right registry when non-pr
Browse files Browse the repository at this point in the history
  • Loading branch information
cavivie committed Mar 29, 2024
1 parent 75a3c2f commit daeae98
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions .github/workflows/docker-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,9 @@ on:
pull_request:
branches: [ "main" ]

env:
REGISTRY: 'ghcr.io'

jobs:
build:
runs-on: windows-2022
Expand Down Expand Up @@ -52,27 +55,31 @@ jobs:
- name: Build and push docker image for win-dev-base
uses: ./.github/actions/docker-build-push
with:
registry: ${{ env.REGISTRY }}
push: ${{ github.event_name != 'pull_request' }}
tag: win-dev-base
context: win-dev-base

- name: Build and push docker image for win-dev-rust
uses: ./.github/actions/docker-build-push
with:
registry: ${{ env.REGISTRY }}
push: ${{ github.event_name != 'pull_request' }}
tag: win-dev-rust
context: win-dev-rust

- name: Build and push docker image for alrd-windows
uses: ./.github/actions/docker-build-push
with:
registry: ${{ env.REGISTRY }}
push: ${{ github.event_name != 'pull_request' }}
tag: alrd-windows
context: win-alrd-rsxe

- name: Build and push docker image for rsxe-windows
uses: ./.github/actions/docker-build-push
with:
registry: ${{ env.REGISTRY }}
push: ${{ github.event_name != 'pull_request' }}
tag: rsxe-windows
context: win-alrd-rsxe

0 comments on commit daeae98

Please sign in to comment.