Skip to content

Commit 84c4ca9

Browse files
authored
Merge pull request #2 from jeremy-feng/fix-docker-image-workflow
ci: fix env variable usage in GitHub Actions workflow for Docker image build
2 parents 4f7d93a + be9f01b commit 84c4ca9

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

.github/workflows/docker-image.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,14 +6,14 @@ on:
66
pull_request:
77
branches: [ "main" ]
88

9-
env:
10-
REGISTRY: ghcr.io
11-
IMAGE_NAME: ${{ env.REGISTRY }}/${{ github.repository }}
12-
139
jobs:
1410
build-and-push:
1511
runs-on: ubuntu-latest
1612

13+
env:
14+
REGISTRY: ghcr.io
15+
IMAGE_NAME: ghcr.io/${{ github.repository }}
16+
1717
permissions:
1818
contents: read
1919
packages: write

0 commit comments

Comments
 (0)