Skip to content

Commit

Permalink
add registry as env variable
Browse files Browse the repository at this point in the history
  • Loading branch information
nickspizzas committed May 1, 2024
1 parent 7d5cca0 commit c79007d
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions .github/workflows/docker-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ on:

env:
IMAGE_NAME: helm-yaml
REGISTRY: ghcr.io

jobs:
# Run tests.
Expand Down Expand Up @@ -52,7 +53,7 @@ jobs:
- name: Prepare Docker Metadata
id: meta
run: |
IMAGE_ID=ghcr.io/${{ github.repository_owner }}/$IMAGE_NAME
IMAGE_ID=${{ env.REGISTRY }}/${{ github.repository_owner }}/$IMAGE_NAME
# Change all uppercase to lowercase
IMAGE_ID=$(echo $IMAGE_ID | tr '[A-Z]' '[a-z]')
Expand All @@ -72,7 +73,7 @@ jobs:
- name: Log into registry ${{ env.REGISTRY }}
uses: docker/login-action@v1
with:
registry: ghcr.io
registry: ${{ env.REGISTRY }}
username: ${{ github.repository_owner }}
password: ${{ secrets.GITHUB_TOKEN }}

Expand Down

0 comments on commit c79007d

Please sign in to comment.