Skip to content

Commit

Permalink
Fix cd
Browse files Browse the repository at this point in the history
  • Loading branch information
MaeIsBad committed Oct 4, 2024
1 parent f34d635 commit 7253230
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/cd.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,13 +16,15 @@ jobs:
permissions:
id-token: write
contents: read
env:
IMAGE_TAG: "public.ecr.aws/primaassicurazioni/webkit-pdf-inator:${{ inputs.tag_name || github.event.release.tag_name }}"
steps:
- uses: actions/checkout@v4
- uses: cachix/install-nix-action@8887e596b4ee1134dae06b98d573bd674693f47c
- uses: DeterminateSystems/magic-nix-cache-action@87b14cf437d03d37989d87f0fa5ce4f5dc1a330b

- run: nix build .#dockerImage
- run: docker load -i ./result
- run: docker tag "$(docker load -q -i ./result | awk '{print $NF}')" "$IMAGE_TAG"

- name: Configure AWS credentials
uses: aws-actions/configure-aws-credentials@v2
Expand All @@ -38,6 +40,4 @@ jobs:
registry-type: public

- name: Push image
run: |-
docker push webkit-pdf-inator \
"public.ecr.aws/primaassicurazioni/webkit-pdf-inator:${{ inputs.tag_name || github.event.release.tag_name }}"
run: docker push "$IMAGE_TAG"

0 comments on commit 7253230

Please sign in to comment.