Skip to content

Commit 449e3ac

Browse files
committed
chore: use consistent environment variable naming
Consistent with https://docs.github.com/en/actions/learn-github-actions/variables#default-environment-variables
1 parent 41d2df2 commit 449e3ac

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

.github/workflows/build.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ jobs:
3939
uses: docker/metadata-action@9dc751fe249ad99385a2583ee0d084c400eee04e # v5.4.0
4040
with:
4141
images: ghcr.io/${{ github.repository }}/${{ matrix.binary }}
42-
- run: echo "REPO_NAME=$(basename ${{ github.repository }})" >> "$GITHUB_ENV"
42+
- run: echo "GITHUB_REPOSITORY_NAME=$(basename ${{ github.repository }})" >> "$GITHUB_ENV"
4343
- name: Build and push ${{ matrix.binary }} container image
4444
if: github.actor != 'dependabot[bot]'
4545
uses: docker/build-push-action@4a13e500e55cf31b7a5d59a38ab2040ab0f42f56 # v5.1.0
@@ -48,4 +48,4 @@ jobs:
4848
tags: ${{ steps.docker_metadata.outputs.tags }}
4949
labels: ${{ steps.docker_metadata.outputs.labels }}
5050
file: deploy/${{ matrix.binary }}/Dockerfile
51-
context: dist/${{ env.REPO_NAME }}_linux_amd64_v1
51+
context: dist/${{ env.GITHUB_REPOSITORY_NAME }}_linux_amd64_v1

0 commit comments

Comments
 (0)