Skip to content

Commit

Permalink
fix: actions variables
Browse files Browse the repository at this point in the history
  • Loading branch information
justinthelaw committed Jan 29, 2024
1 parent 9d74eb2 commit 3d5570b
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions .github/workflows/build-and-push-image.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ jobs:
id: meta
uses: docker/metadata-action@v5
with:
images: ${{ env.REGISTRY_IMAGE }}
images: ${{ vars.REGISTRY_IMAGE }}
tags: |
type=schedule
type=ref,event=branch
Expand All @@ -44,7 +44,7 @@ jobs:
- name: Login to GitHub Container Registry
uses: docker/login-action@v3
with:
registry: ${{ env.REGISTRY }}
registry: ${{ vars.REGISTRY }}
username: ${{ github.repository_owner }}
password: ${{ secrets.GITHUB_TOKEN }}

Expand All @@ -55,8 +55,8 @@ jobs:
context: .
platforms: ${{ matrix.platform }}
labels: ${{ steps.meta.outputs.labels }}
outputs: type=image,name=${{ env.REGISTRY_IMAGE }},push-by-digest=true,name-canonical=true,push=true
tags: ${{ env.REGISTRY }}/${{ env.REGISTRY_IMAGE }}
outputs: type=image,name=${{ vars.REGISTRY_IMAGE }},push-by-digest=true,name-canonical=true,push=true
tags: ${{ vars.REGISTRY }}/${{ vars.REGISTRY_IMAGE }}

- name: Export Digest
run: |
Expand Down Expand Up @@ -89,15 +89,15 @@ jobs:
- name: Login to GitHub Container Registry
uses: docker/login-action@v3
with:
registry: ${{ env.REGISTRY }}
registry: ${{ vars.REGISTRY }}
username: ${{ github.repository_owner }}
password: ${{ secrets.GITHUB_TOKEN }}

- name: Docker Metadata
id: meta
uses: docker/metadata-action@v5
with:
images: ${{ env.REGISTRY }}/${{ env.REGISTRY_IMAGE }}
images: ${{ vars.REGISTRY }}/${{ vars.REGISTRY_IMAGE }}
tags: |
type=schedule
type=ref,event=branch
Expand All @@ -111,8 +111,8 @@ jobs:
working-directory: /tmp/digests
run: |
docker buildx imagetools create $(jq -cr '.tags | map("-t " + .) | join(" ")' <<< "$DOCKER_METADATA_OUTPUT_JSON") \
$(printf '${{ env.REGISTRY }}/${{ env.REGISTRY_IMAGE }}@sha256:%s ' *)
$(printf '${{ vars.REGISTRY }}/${{ vars.REGISTRY_IMAGE }}@sha256:%s ' *)
- name: Inspect image
run: |
docker buildx imagetools inspect ${{ env.REGISTRY }}/${{ env.REGISTRY_IMAGE }}:${{ steps.meta.outputs.version }}
docker buildx imagetools inspect ${{ vars.REGISTRY }}/${{ vars.REGISTRY_IMAGE }}:${{ steps.meta.outputs.version }}

0 comments on commit 3d5570b

Please sign in to comment.