Skip to content

Commit 0c85c48

Browse files
committed
fix: references
1 parent 3f24eb1 commit 0c85c48

File tree

1 file changed

+9
-3
lines changed

1 file changed

+9
-3
lines changed

.github/workflows/docker-publish-on-release.yml

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -24,16 +24,22 @@ jobs:
2424
- name: Set up Docker Buildx
2525
uses: docker/setup-buildx-action@v2
2626

27+
- name: Set Lowercase Repository Info
28+
id: repo_info
29+
run: |
30+
echo "REPO_OWNER=$(echo ${{ github.repository_owner }} | tr '[:upper:]' '[:lower:]')" >> $GITHUB_ENV
31+
echo "REPO_NAME=$(echo ${{ github.event.repository.name }} | tr '[:upper:]' '[:lower:]')" >> $GITHUB_ENV
32+
2733
- name: Build and Push Docker Image
2834
uses: docker/build-push-action@v5
2935
with:
3036
context: .
3137
push: true
3238
tags: |
33-
ghcr.io/${{ github.repository }}/fortsphere:latest
34-
ghcr.io/${{ github.repository }}/fortsphere:${{ github.event.release.tag_name }}
39+
ghcr.io/${{ env.REPO_OWNER }}/${{ env.REPO_NAME }}:latest
40+
ghcr.io/${{ env.REPO_OWNER }}/${{ env.REPO_NAME }}:${{ github.event.release.tag_name }}
3541
labels: |
36-
org.opencontainers.image.title=Fortsphere
42+
org.opencontainers.image.title=fortsphere
3743
org.opencontainers.image.description="Fortify your digital sphere, one command at a time."
3844
org.opencontainers.image.url=https://github.com/OpenPathfinder/fortSphere
3945
org.opencontainers.image.source=https://github.com/OpenPathfinder/fortSphere.git

0 commit comments

Comments
 (0)