Skip to content

Commit

Permalink
Ensure lowercase registry name in "publish" GitHub action
Browse files Browse the repository at this point in the history
  • Loading branch information
jingyuanliang committed Nov 30, 2024
1 parent 8d15600 commit 67a0e0c
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion .github/workflows/publish.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,15 @@ jobs:
- name: Checkout repository
uses: actions/checkout@v4

- name: Generate registry name
id: gen-registry
run: echo "registry=ghcr.io/${REPOSITORY,,}" >> "${GITHUB_OUTPUT}"
env:
REPOSITORY: ${{ github.repository }}

- name: Build and push Docker image
run: make login manifest-list
env:
REGISTRY: ghcr.io/${{ github.repository }}
REGISTRY: ${{ steps.gen-registry.outputs.registry }}
REGISTRY_USERNAME: ${{ github.actor }}
REGISTRY_PASSWORD: ${{ secrets.GITHUB_TOKEN }}

0 comments on commit 67a0e0c

Please sign in to comment.