Skip to content

Commit 0370fb5

Browse files
committed
fix: references
1 parent 3f24eb1 commit 0370fb5

File tree

1 file changed

+13
-3
lines changed

1 file changed

+13
-3
lines changed

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

+13-3
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,10 @@ on:
55
types:
66
- published
77

8+
permissions:
9+
contents: read
10+
packages: write
11+
812
jobs:
913
build-and-push:
1014
name: Build and Push Docker Image
@@ -24,16 +28,22 @@ jobs:
2428
- name: Set up Docker Buildx
2529
uses: docker/setup-buildx-action@v2
2630

31+
- name: Set Lowercase Repository Info
32+
id: repo_info
33+
run: |
34+
echo "REPO_OWNER=$(echo ${{ github.repository_owner }} | tr '[:upper:]' '[:lower:]')" >> $GITHUB_ENV
35+
echo "REPO_NAME=$(echo ${{ github.event.repository.name }} | tr '[:upper:]' '[:lower:]')" >> $GITHUB_ENV
36+
2737
- name: Build and Push Docker Image
2838
uses: docker/build-push-action@v5
2939
with:
3040
context: .
3141
push: true
3242
tags: |
33-
ghcr.io/${{ github.repository }}/fortsphere:latest
34-
ghcr.io/${{ github.repository }}/fortsphere:${{ github.event.release.tag_name }}
43+
ghcr.io/${{ env.REPO_OWNER }}/${{ env.REPO_NAME }}:latest
44+
ghcr.io/${{ env.REPO_OWNER }}/${{ env.REPO_NAME }}:${{ github.event.release.tag_name }}
3545
labels: |
36-
org.opencontainers.image.title=Fortsphere
46+
org.opencontainers.image.title=fortsphere
3747
org.opencontainers.image.description="Fortify your digital sphere, one command at a time."
3848
org.opencontainers.image.url=https://github.com/OpenPathfinder/fortSphere
3949
org.opencontainers.image.source=https://github.com/OpenPathfinder/fortSphere.git

0 commit comments

Comments
 (0)