Update Gitea workflows to use REGISTRY_USER and REGISTRY_TOKEN for registry login, falling back to GITEA_TOKEN when secrets are unavailable.
images / check (push) Successful in 29s
images / sandbox (push) Successful in 35s
images / spawner (push) Successful in 59s
images / backend (push) Successful in 22s
images / jobs (push) Successful in 12s

This commit is contained in:
Overlord committed 2026-10-13 16:59:39 +02:00
1 parent b9203f74f4
commit d58101287d
2 files changed
+14 -10

No files matched your search

+11 -8
View File
@@ -1,3 +1,6 @@
# Builds the images and pushes them to the registry of the organization.
# Uses the secrets REGISTRY_USER and REGISTRY_TOKEN (a token with package
# write access) when they exist, else the automatic token of the run.
name: images
on:
@@ -27,8 +30,8 @@ jobs:
- name: Log in to the registry
run: >
echo "${{ secrets.GITEA_TOKEN }}"
| docker login "${REGISTRY%%/*}" -u "${{ gitea.actor }}" --password-stdin
echo "${{ secrets.REGISTRY_TOKEN || secrets.GITEA_TOKEN }}"
| docker login "${REGISTRY%%/*}" -u "${{ secrets.REGISTRY_USER || gitea.actor }}" --password-stdin
- name: Build and push
run: |
@@ -44,8 +47,8 @@ jobs:
- name: Log in to the registry
run: >
echo "${{ secrets.GITEA_TOKEN }}"
| docker login "${REGISTRY%%/*}" -u "${{ gitea.actor }}" --password-stdin
echo "${{ secrets.REGISTRY_TOKEN || secrets.GITEA_TOKEN }}"
| docker login "${REGISTRY%%/*}" -u "${{ secrets.REGISTRY_USER || gitea.actor }}" --password-stdin
- name: Build and push
run: |
@@ -61,8 +64,8 @@ jobs:
- name: Log in to the registry
run: >
echo "${{ secrets.GITEA_TOKEN }}"
| docker login "${REGISTRY%%/*}" -u "${{ gitea.actor }}" --password-stdin
echo "${{ secrets.REGISTRY_TOKEN || secrets.GITEA_TOKEN }}"
| docker login "${REGISTRY%%/*}" -u "${{ secrets.REGISTRY_USER || gitea.actor }}" --password-stdin
- name: Build and push
run: |
@@ -78,8 +81,8 @@ jobs:
- name: Log in to the registry
run: >
echo "${{ secrets.GITEA_TOKEN }}"
| docker login "${REGISTRY%%/*}" -u "${{ gitea.actor }}" --password-stdin
echo "${{ secrets.REGISTRY_TOKEN || secrets.GITEA_TOKEN }}"
| docker login "${REGISTRY%%/*}" -u "${{ secrets.REGISTRY_USER || gitea.actor }}" --password-stdin
- name: Build and push
run: |