Skip to content

Commit c79007d

Browse files
committed
add registry as env variable
1 parent 7d5cca0 commit c79007d

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

Diff for: .github/workflows/docker-publish.yml

+3-2
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@ on:
1515

1616
env:
1717
IMAGE_NAME: helm-yaml
18+
REGISTRY: ghcr.io
1819

1920
jobs:
2021
# Run tests.
@@ -52,7 +53,7 @@ jobs:
5253
- name: Prepare Docker Metadata
5354
id: meta
5455
run: |
55-
IMAGE_ID=ghcr.io/${{ github.repository_owner }}/$IMAGE_NAME
56+
IMAGE_ID=${{ env.REGISTRY }}/${{ github.repository_owner }}/$IMAGE_NAME
5657
5758
# Change all uppercase to lowercase
5859
IMAGE_ID=$(echo $IMAGE_ID | tr '[A-Z]' '[a-z]')
@@ -72,7 +73,7 @@ jobs:
7273
- name: Log into registry ${{ env.REGISTRY }}
7374
uses: docker/login-action@v1
7475
with:
75-
registry: ghcr.io
76+
registry: ${{ env.REGISTRY }}
7677
username: ${{ github.repository_owner }}
7778
password: ${{ secrets.GITHUB_TOKEN }}
7879

0 commit comments

Comments
 (0)