(bugfix) build.yaml: secret and var wasn't referenced properly
All checks were successful
Build and Push Docker Image / build (push) Successful in 49s

This commit is contained in:
Nikola Derežić
2026-01-09 12:41:15 +01:00
parent e5cfae67dc
commit 0a8348458b

View File

@@ -30,10 +30,10 @@ jobs:
- name: Login to Registry
# Gitea automatically provides these secrets:
# - `REGISTRY_USERNAME` - defined as action variable in repo settings
# - `REGISTRY_TOKEN` - defined as action secret in repo settings, created in user settings as personal access token with `write:packages` scope
# - `vars.REGISTRY_USERNAME` - defined as action variable in repo settings
# - `secrets.REGISTRY_TOKEN` - defined as action secret in repo settings, created in user settings as personal access token with `write:packages` scope
run: |
echo "${{ REGISTRY_TOKEN }}" | docker login registry.budakova.org -u "${{ REGISTRY_USERNAME }}" --password-stdin
echo "${{ secrets.REGISTRY_TOKEN }}" | docker login registry.budakova.org -u "${{ vars.REGISTRY_USERNAME }}" --password-stdin
- name: Build and push Docker image
uses: docker/build-push-action@v5