Skip to content

Commit

Permalink
fix: docker login right registry when non-pr (#2)
Browse files Browse the repository at this point in the history
Co-authored-by: cavivie <[email protected]>
  • Loading branch information
cavivie and cavivie authored Mar 29, 2024
1 parent f7318e4 commit 167ba0f
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 167ba0f

Please sign in to comment.