File tree 1 file changed +13
-3
lines changed
1 file changed +13
-3
lines changed Original file line number Diff line number Diff line change 5
5
types :
6
6
- published
7
7
8
+ permissions :
9
+ contents : read
10
+ packages : write
11
+
8
12
jobs :
9
13
build-and-push :
10
14
name : Build and Push Docker Image
@@ -24,16 +28,22 @@ jobs:
24
28
- name : Set up Docker Buildx
25
29
uses : docker/setup-buildx-action@v2
26
30
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
+
27
37
- name : Build and Push Docker Image
28
38
uses : docker/build-push-action@v5
29
39
with :
30
40
context : .
31
41
push : true
32
42
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 }}
35
45
labels : |
36
- org.opencontainers.image.title=Fortsphere
46
+ org.opencontainers.image.title=fortsphere
37
47
org.opencontainers.image.description="Fortify your digital sphere, one command at a time."
38
48
org.opencontainers.image.url=https://github.com/OpenPathfinder/fortSphere
39
49
org.opencontainers.image.source=https://github.com/OpenPathfinder/fortSphere.git
You can’t perform that action at this time.
0 commit comments