fix: use secrets.REGISTRY_TOKEN for Gitea registry authentication
This commit is contained in:
@@ -22,7 +22,7 @@ jobs:
|
|||||||
with:
|
with:
|
||||||
registry: git.nciphered.com
|
registry: git.nciphered.com
|
||||||
username: ${{ github.actor }}
|
username: ${{ github.actor }}
|
||||||
password: ${{ secrets.GITHUB_TOKEN }}
|
password: ${{ secrets.REGISTRY_TOKEN }}
|
||||||
|
|
||||||
- name: Build and Push Image
|
- name: Build and Push Image
|
||||||
uses: docker/build-push-action@v5
|
uses: docker/build-push-action@v5
|
||||||
@@ -49,7 +49,7 @@ jobs:
|
|||||||
key: ${{ secrets.DROPLET_SSH_KEY }}
|
key: ${{ secrets.DROPLET_SSH_KEY }}
|
||||||
script: |
|
script: |
|
||||||
# Authenticate with Gitea registry on Droplet
|
# Authenticate with Gitea registry on Droplet
|
||||||
docker login -u "${{ github.actor }}" -p "${{ secrets.GITHUB_TOKEN }}" git.nciphered.com
|
docker login -u "${{ github.actor }}" -p "${{ secrets.REGISTRY_TOKEN }}" git.nciphered.com
|
||||||
|
|
||||||
# Pull latest image
|
# Pull latest image
|
||||||
docker pull git.nciphered.com/${{ github.repository }}:latest
|
docker pull git.nciphered.com/${{ github.repository }}:latest
|
||||||
|
|||||||
Reference in New Issue
Block a user