File tree Expand file tree Collapse file tree 1 file changed +13
-3
lines changed
Expand file tree Collapse file tree 1 file changed +13
-3
lines changed Original file line number Diff line number Diff line change 55 types :
66 - published
77
8+ permissions :
9+ contents : read
10+ packages : write
11+
812jobs :
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
You can’t perform that action at this time.
0 commit comments