Login to registry before Flutter image push
Build and deploy Flutter Web / build (push) Failing after 10s

This commit is contained in:
Ruslan Bakiev
2026-06-23 00:02:06 +07:00
parent 0a852edc35
commit 35e3624802
+14
View File
@@ -19,6 +19,20 @@ 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: ${{ secrets.GITHUB_TOKEN }}
run: |
set -euo pipefail
username="${REGISTRY_USERNAME:-$GITEA_ACTOR}"
token="${REGISTRY_TOKEN:-$GITEA_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