From a827bd5eef0354f7e4fdca57383971ff6008b5d3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jonas=20R=C3=B6ger?= Date: Tue, 8 Sep 2026 18:24:46 +0200 Subject: [PATCH] ci: push latest --- .gitea/scripts/push-image.sh | 2 +- .gitea/workflows/docker.yaml | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/.gitea/scripts/push-image.sh b/.gitea/scripts/push-image.sh index cb0b7f8..1e5e40c 100644 --- a/.gitea/scripts/push-image.sh +++ b/.gitea/scripts/push-image.sh @@ -14,7 +14,7 @@ skopeo copy \ "docker-archive:result" \ "docker://${IMAGE}" -if [ "${GITEA_REF_TYPE:-}" = "branch" ] && [ "${GITEA_REF_NAME:-}" = "main" ]; then +if [ "${REF_NAME:-}" = "main" ]; then skopeo copy \ --dest-creds "${USERNAME}:${PASSWORD}" \ "docker-archive:result" \ diff --git a/.gitea/workflows/docker.yaml b/.gitea/workflows/docker.yaml index 8d878ca..210deeb 100644 --- a/.gitea/workflows/docker.yaml +++ b/.gitea/workflows/docker.yaml @@ -21,6 +21,7 @@ jobs: REPOSITORY: "${{ gitea.repository }}" USERNAME: "${{ secrets.REGISTRY_USER }}" PASSWORD: "${{ secrets.REGISTRY_TOKEN }}" + REF_NAME: "${{ gitea.ref_name }}" TAG: "${{ gitea.sha }}" run: bash .gitea/scripts/push-image.sh @@ -41,5 +42,6 @@ jobs: REPOSITORY: "${{ gitea.repository }}-web" USERNAME: "${{ secrets.REGISTRY_USER }}" PASSWORD: "${{ secrets.REGISTRY_TOKEN }}" + REF_NAME: "${{ gitea.ref_name }}" TAG: "${{ gitea.sha }}" run: bash .gitea/scripts/push-image.sh