From bcec73c6cbfa83ea5816109a2ca6f05ecef9ca8c Mon Sep 17 00:00:00 2001 From: Ruslan Bakiev Date: Tue, 23 Jun 2026 00:06:38 +0700 Subject: [PATCH] Keep Flutter workflow registry-auth neutral --- .gitea/workflows/build-and-deploy.yml | 19 ------------------- 1 file changed, 19 deletions(-) diff --git a/.gitea/workflows/build-and-deploy.yml b/.gitea/workflows/build-and-deploy.yml index 160f738..e4fba4a 100644 --- a/.gitea/workflows/build-and-deploy.yml +++ b/.gitea/workflows/build-and-deploy.yml @@ -19,25 +19,6 @@ jobs: steps: - uses: actions/checkout@v4 - - name: Login to registry - env: - REGISTRY_USERNAME: ${{ secrets.REGISTRY_USERNAME }} - REGISTRY_TOKEN: ${{ secrets.REGISTRY_TOKEN }} - GITEA_ACTOR: ${{ github.actor }} - GITEA_TOKEN: ${{ github.token }} - run: | - set -euo pipefail - if [ -n "${GITEA_TOKEN:-}" ]; then - if printf '%s' "$GITEA_TOKEN" | docker login gitea.dsrptlab.com -u "$GITEA_ACTOR" --password-stdin; then - exit 0 - fi - fi - username="${REGISTRY_USERNAME:-$GITEA_ACTOR}" - token="${REGISTRY_TOKEN:-}" - test -n "$username" - test -n "$token" - printf '%s' "$token" | docker login gitea.dsrptlab.com -u "$username" --password-stdin - - name: Build and push image run: | set -euo pipefail