2222 check-latest : true
2323 - uses : actions/setup-node@v4
2424 with :
25- node-version : 22
25+ node-version : 24
2626 cache : npm
2727 cache-dependency-path : package-lock.json
2828 - run : make deps-frontend deps-backend
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
@@ -73,29 +75,34 @@ jobs:
7375 - name : Get cleaned branch name
7476 id : clean_name
7577 run : |
76- # if main then say nightly otherwise cleanup name
77- if [ "${{ github.ref }}" = "refs/heads/main" ]; then
78- echo "branch=nightly" >> "$GITHUB_OUTPUT"
79- exit 0
80- fi
8178 REF_NAME=$(echo "${{ github.ref }}" | sed -e 's/refs\/heads\///' -e 's/refs\/tags\///' -e 's/release\/v//')
8279 echo "branch=${REF_NAME}-nightly" >> "$GITHUB_OUTPUT"
8380 - name : Login to Docker Hub
8481 uses : docker/login-action@v3
8582 with :
8683 username : ${{ secrets.DOCKERHUB_USERNAME }}
8784 password : ${{ secrets.DOCKERHUB_TOKEN }}
85+ - name : Login to GHCR using PAT
86+ uses : docker/login-action@v3
87+ with :
88+ registry : ghcr.io
89+ username : ${{ github.repository_owner }}
90+ password : ${{ secrets.GITHUB_TOKEN }}
8891 - name : fetch go modules
8992 run : make vendor
9093 - name : build rootful docker image
9194 uses : docker/build-push-action@v5
9295 with :
9396 context : .
94- platforms : linux/amd64,linux/arm64
97+ platforms : linux/amd64,linux/arm64,linux/riscv64
9598 push : true
96- tags : gitea/gitea:${{ steps.clean_name.outputs.branch }}
99+ tags : |-
100+ gitea/gitea:${{ steps.clean_name.outputs.branch }}
101+ ghcr.io/go-gitea/gitea:${{ steps.clean_name.outputs.branch }}
97102 nightly-docker-rootless :
98103 runs-on : namespace-profile-gitea-release-docker
104+ permissions :
105+ packages : write # to publish to ghcr.io
99106 steps :
100107 - uses : actions/checkout@v4
101108 # fetch all commits instead of only the last as some branches are long lived and could have many between versions
@@ -110,18 +117,19 @@ jobs:
110117 - name : Get cleaned branch name
111118 id : clean_name
112119 run : |
113- # if main then say nightly otherwise cleanup name
114- if [ "${{ github.ref }}" = "refs/heads/main" ]; then
115- echo "branch=nightly" >> "$GITHUB_OUTPUT"
116- exit 0
117- fi
118120 REF_NAME=$(echo "${{ github.ref }}" | sed -e 's/refs\/heads\///' -e 's/refs\/tags\///' -e 's/release\/v//')
119121 echo "branch=${REF_NAME}-nightly" >> "$GITHUB_OUTPUT"
120122 - name : Login to Docker Hub
121123 uses : docker/login-action@v3
122124 with :
123125 username : ${{ secrets.DOCKERHUB_USERNAME }}
124126 password : ${{ secrets.DOCKERHUB_TOKEN }}
127+ - name : Login to GHCR using PAT
128+ uses : docker/login-action@v3
129+ with :
130+ registry : ghcr.io
131+ username : ${{ github.repository_owner }}
132+ password : ${{ secrets.GITHUB_TOKEN }}
125133 - name : fetch go modules
126134 run : make vendor
127135 - name : build rootless docker image
@@ -131,4 +139,6 @@ jobs:
131139 platforms : linux/amd64,linux/arm64
132140 push : true
133141 file : Dockerfile.rootless
134- tags : gitea/gitea:${{ steps.clean_name.outputs.branch }}-rootless
142+ tags : |-
143+ gitea/gitea:${{ steps.clean_name.outputs.branch }}-rootless
144+ ghcr.io/go-gitea/gitea:${{ steps.clean_name.outputs.branch }}-rootless
0 commit comments