ci: push to the trex registry namespace with a trex-owned token
This commit is contained in:
1 parent
40d950be30
commit
dc6a2f4794
1 file changed
+6
-4
@@ -16,8 +16,10 @@ jobs:
|
||||
uses: docker/login-action@v4
|
||||
with:
|
||||
registry: git.jonb.io
|
||||
username: '${{ gitea.actor }}'
|
||||
password: '${{ secrets.JONBIO_CI }}'
|
||||
# The package lives in the trex namespace (Gitea only lets the
|
||||
# package owner push), so the token must be one trex owns.
|
||||
username: trex
|
||||
password: '${{ secrets.TREX_REGISTRY_TOKEN }}'
|
||||
- name: Set up Docker Buildx
|
||||
uses: docker/setup-buildx-action@v4
|
||||
- name: Build and push
|
||||
@@ -26,5 +28,5 @@ jobs:
|
||||
context: .
|
||||
push: true
|
||||
tags: |
|
||||
git.jonb.io/jblu/seafile-backup:latest
|
||||
git.jonb.io/jblu/seafile-backup:${{ gitea.sha }}
|
||||
git.jonb.io/trex/seafile-backup:latest
|
||||
git.jonb.io/trex/seafile-backup:${{ gitea.sha }}
|
||||
Reference in new issue
Block a user