Login to registry before Flutter image push
Build and deploy Flutter Web / build (push) Failing after 10s
Build and deploy Flutter Web / build (push) Failing after 10s
This commit is contained in:
@@ -19,6 +19,20 @@ jobs:
|
|||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v4
|
- 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
|
- name: Build and push image
|
||||||
run: |
|
run: |
|
||||||
set -euo pipefail
|
set -euo pipefail
|
||||||
|
|||||||
Reference in New Issue
Block a user