(bugfix) build.yaml: secret and var wasn't referenced properly
All checks were successful
Build and Push Docker Image / build (push) Successful in 49s
All checks were successful
Build and Push Docker Image / build (push) Successful in 49s
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user