Use repository token for Gitea registry login
- Replaced vars.REPOSITORY_TOKEN with secrets.REPOSITORY_TOKEN for Gitea registry login. - This improves security by storing the token as a secret. - Ensures the token is not exposed in the workflow file.
This commit is contained in:
parent
470fa896b4
commit
446b613816
@ -78,7 +78,7 @@ jobs:
|
|||||||
run: echo "${{ secrets.DOCKERHUB_PASSWORD }}" | docker login -u "${{ secrets.DOCKERHUB_USERNAME }}" --password-stdin
|
run: echo "${{ secrets.DOCKERHUB_PASSWORD }}" | docker login -u "${{ secrets.DOCKERHUB_USERNAME }}" --password-stdin
|
||||||
|
|
||||||
- name: Log in to Gitea Registry
|
- name: Log in to Gitea Registry
|
||||||
run: echo "${{ vars.REPOSITORY_TOKEN }}" | docker login git.rogs.me -u rogs --password-stdin
|
run: echo "${{ secrets.REPOSITORY_TOKEN }}" | docker login git.rogs.me -u rogs --password-stdin
|
||||||
|
|
||||||
- name: Set up Docker Buildx
|
- name: Set up Docker Buildx
|
||||||
uses: docker/setup-buildx-action@v2
|
uses: docker/setup-buildx-action@v2
|
||||||
|
Loading…
x
Reference in New Issue
Block a user