Skip to content

Commit

Permalink
Determine tag *after* checkout
Browse files Browse the repository at this point in the history
  • Loading branch information
j-mueller committed Jan 19, 2025
1 parent a451fe7 commit c7d5c1c
Showing 1 changed file with 9 additions and 9 deletions.
18 changes: 9 additions & 9 deletions .github/workflows/ci-oci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,15 @@ jobs:
runs-on: ubuntu-latest
steps:

- name: Log in to ghcr.io
uses: redhat-actions/podman-login@v1
with:
username: ${{ env.REGISTRY_USER }}
password: ${{ env.REGISTRY_PASSWORD }}
registry: ${{ env.IMAGE_REGISTRY }}

- uses: actions/checkout@v4

- name: Determine image tag for git tag
if: ${{ github.event_name == 'push' }}
run: |
Expand All @@ -41,15 +50,6 @@ jobs:
IMAGE_TAG=pr-${{ github.event.pull_request.number }}
echo "IMAGE_TAG=${IMAGE_TAG}" >> $GITHUB_ENV
- name: Log in to ghcr.io
uses: redhat-actions/podman-login@v1
with:
username: ${{ env.REGISTRY_USER }}
password: ${{ env.REGISTRY_PASSWORD }}
registry: ${{ env.IMAGE_REGISTRY }}

- uses: actions/checkout@v4

- name: Install nix
uses: cachix/install-nix-action@v27

Expand Down

0 comments on commit c7d5c1c

Please sign in to comment.