File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree 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 :
10- name : Build and Push Docker Image
14+ name : Build and Push Multi-Platform Docker Image
1115 runs-on : ubuntu-latest
1216
1317 steps :
@@ -23,17 +27,26 @@ jobs:
2327
2428 - name : Set up Docker Buildx
2529 uses : docker/setup-buildx-action@v2
30+ with :
31+ install : true
32+
33+ - name : Set Lowercase Repository Info
34+ id : repo_info
35+ run : |
36+ echo "REPO_OWNER=$(echo ${{ github.repository_owner }} | tr '[:upper:]' '[:lower:]')" >> $GITHUB_ENV
37+ echo "REPO_NAME=$(echo ${{ github.event.repository.name }} | tr '[:upper:]' '[:lower:]')" >> $GITHUB_ENV
2638
27- - name : Build and Push Docker Image
39+ - name : Build and Push Multi-Platform Docker Image
2840 uses : docker/build-push-action@v5
2941 with :
3042 context : .
3143 push : true
44+ platforms : linux/amd64,linux/arm64
3245 tags : |
33- ghcr.io/${{ github.repository }}/fortsphere :latest
34- ghcr.io/${{ github.repository }}/fortsphere :${{ github.event.release.tag_name }}
46+ ghcr.io/${{ env.REPO_OWNER }}/${{ env.REPO_NAME }} :latest
47+ ghcr.io/${{ env.REPO_OWNER }}/${{ env.REPO_NAME }} :${{ github.event.release.tag_name }}
3548 labels : |
36- org.opencontainers.image.title=Fortsphere
49+ org.opencontainers.image.title=fortsphere
3750 org.opencontainers.image.description="Fortify your digital sphere, one command at a time."
3851 org.opencontainers.image.url=https://github.com/OpenPathfinder/fortSphere
3952 org.opencontainers.image.source=https://github.com/OpenPathfinder/fortSphere.git
You can’t perform that action at this time.
0 commit comments