From 1fdbaf5ef0d73bb3d413b6540c47a53c08c010e5 Mon Sep 17 00:00:00 2001 From: "A. Renz" Date: Thu, 11 Dec 2025 21:22:17 +0100 Subject: [PATCH] ci: skip docker push if registry secrets not configured --- .gitea/workflows/ci.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.gitea/workflows/ci.yml b/.gitea/workflows/ci.yml index e959d8d..ec24a58 100644 --- a/.gitea/workflows/ci.yml +++ b/.gitea/workflows/ci.yml @@ -149,10 +149,12 @@ jobs: docker buildx inspect --bootstrap - name: Login to Gitea Registry + if: ${{ secrets.REGISTRY_USER != '' && secrets.REGISTRY_TOKEN != '' }} run: | echo "${{ secrets.REGISTRY_TOKEN }}" | docker login git.uuxo.net -u "${{ secrets.REGISTRY_USER }}" --password-stdin - name: Build and push + if: ${{ secrets.REGISTRY_USER != '' && secrets.REGISTRY_TOKEN != '' }} run: | # Determine tags if [[ "${GITHUB_REF}" == refs/tags/* ]]; then