(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
Some checks failed
Build and Push Docker Image / build (push) Failing after 46s
This commit is contained in:
@@ -30,10 +30,10 @@ jobs:
|
|||||||
|
|
||||||
- name: Login to Registry using user=${{ gitea.actor }}/pass=${{ gitea.token }}
|
- name: Login to Registry using user=${{ gitea.actor }}/pass=${{ gitea.token }}
|
||||||
# Gitea automatically provides these secrets:
|
# Gitea automatically provides these secrets:
|
||||||
# - `gitea.actor` - The username of the user who triggered the workflow
|
# - `REGISTRY_USERNAME` - defined as action variable in repo settings
|
||||||
# - `gitea.token` - An automatically generated token with appropriate permissions
|
# - `REGISTRY_TOKEN` - defined as action secret in repo settings, created in user settings as personal access token with `write:packages` scope
|
||||||
run: |
|
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
|
- name: Build and push Docker image
|
||||||
uses: docker/build-push-action@v5
|
uses: docker/build-push-action@v5
|
||||||
|
|||||||
Reference in New Issue
Block a user