5959 aws s3 sync dist/release s3://${{ secrets.AWS_S3_BUCKET }}/gitea/${{ steps.clean_name.outputs.branch }} --no-progress
6060 nightly-docker-rootful :
6161 runs-on : namespace-profile-gitea-release-docker
62+ permissions :
63+ packages : write # to publish to ghcr.io
6264 steps :
6365 - uses : actions/checkout@v4
6466 # fetch all commits instead of only the last as some branches are long lived and could have many between versions
8587 with :
8688 username : ${{ secrets.DOCKERHUB_USERNAME }}
8789 password : ${{ secrets.DOCKERHUB_TOKEN }}
90+ - name : Login to GHCR using PAT
91+ uses : docker/login-action@v3
92+ with :
93+ registry : ghcr.io
94+ username : ${{ github.repository_owner }}
95+ password : ${{ secrets.GITHUB_TOKEN }}
8896 - name : fetch go modules
8997 run : make vendor
9098 - name : build rootful docker image
@@ -93,9 +101,13 @@ jobs:
93101 context : .
94102 platforms : linux/amd64,linux/arm64
95103 push : true
96- tags : gitea/gitea:${{ steps.clean_name.outputs.branch }}
104+ tags : |-
105+ gitea/gitea:${{ steps.clean_name.outputs.branch }}
106+ ghcr.io/go-gitea/gitea:${{ steps.clean_name.outputs.branch }}
97107 nightly-docker-rootless :
98108 runs-on : namespace-profile-gitea-release-docker
109+ permissions :
110+ packages : write # to publish to ghcr.io
99111 steps :
100112 - uses : actions/checkout@v4
101113 # fetch all commits instead of only the last as some branches are long lived and could have many between versions
@@ -122,6 +134,12 @@ jobs:
122134 with :
123135 username : ${{ secrets.DOCKERHUB_USERNAME }}
124136 password : ${{ secrets.DOCKERHUB_TOKEN }}
137+ - name : Login to GHCR using PAT
138+ uses : docker/login-action@v3
139+ with :
140+ registry : ghcr.io
141+ username : ${{ github.repository_owner }}
142+ password : ${{ secrets.GITHUB_TOKEN }}
125143 - name : fetch go modules
126144 run : make vendor
127145 - name : build rootless docker image
@@ -131,4 +149,6 @@ jobs:
131149 platforms : linux/amd64,linux/arm64
132150 push : true
133151 file : Dockerfile.rootless
134- tags : gitea/gitea:${{ steps.clean_name.outputs.branch }}-rootless
152+ tags : |-
153+ gitea/gitea:${{ steps.clean_name.outputs.branch }}-rootless
154+ ghcr.io/go-gitea/gitea:${{ steps.clean_name.outputs.branch }}-rootless
0 commit comments