Skip to content

Commit cc37b2b

Browse files
committed
ci: fix name must be lowercase
1 parent b488baf commit cc37b2b

1 file changed

Lines changed: 5 additions & 2 deletions

File tree

.github/workflows/publish.yml

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,9 @@ jobs:
3636
registry: ghcr.io
3737
username: ${{ github.actor }}
3838
password: ${{ secrets.GITHUB_TOKEN }}
39+
40+
- name: Set lowercase image name
41+
run: echo "IMAGE_NAME=ghcr.io/${GITHUB_REPOSITORY,,}" >> $GITHUB_ENV
3942

4043
- name: Build and push Docker image
4144
uses: docker/build-push-action@v5
@@ -45,8 +48,8 @@ jobs:
4548
platforms: ${{ matrix.platform }}
4649
push: true
4750
tags: |
48-
ghcr.io/${{ github.repository_owner }}/beaver-notes:latest
49-
ghcr.io/${{ github.repository_owner }}/beaver-notes:${{ github.sha }}
51+
${{ env.IMAGE_NAME }}:latest
52+
${{ env.IMAGE_NAME }}:${{ github.sha }}
5053
labels: |
5154
org.opencontainers.image.source=${{ github.repository }}
5255
org.opencontainers.image.description="Beaver Notes Dockerized"

0 commit comments

Comments
 (0)