(fix) fixing registry login by replacing gitea.actor & gitea.token with action variable and action secret
Some checks failed
Build and Push Docker Image / build (push) Failing after 46s

This commit is contained in:
Nikola Derežić
2026-01-09 12:33:26 +01:00
parent 03ad8588c0
commit 6d1e01d73b

View File

@@ -30,10 +30,10 @@ jobs:
- name: Login to Registry using user=${{ gitea.actor }}/pass=${{ gitea.token }}
# Gitea automatically provides these secrets:
# - `gitea.actor` - The username of the user who triggered the workflow
# - `gitea.token` - An automatically generated token with appropriate permissions
# - `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
run: |
echo "${{ gitea.token }}" | docker login registry.budakova.org -u "${{ gitea.actor }}" --password-stdin
echo "${{ REGISTRY_TOKEN }}" | docker login registry.budakova.org -u "${{ REGISTRY_USERNAME }}" --password-stdin
- name: Build and push Docker image
uses: docker/build-push-action@v5