Replaced GitHub token login with Personal Access Token (GHCR_PAT)

to allow pushing images to the private GitHub Container Registry (ghcr.io).
This commit is contained in:
Keyvan Ebrahimpour 2025-04-11 20:52:19 +00:00
parent adce351802
commit 77e4dc4516

View file

@ -29,11 +29,10 @@ jobs:
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Build and push Docker image
- name: Build and Push Docker Image
run: |
IMAGE_NAME="ghcr.io/${{ github.repository }}:$VERSION"
docker build -t $IMAGE_NAME .
docker push $IMAGE_NAME
docker build -t ghcr.io/${{ github.repository }}:$VERSION .
docker push ghcr.io/${{ github.repository }}:$VERSION
- name: Set up kubeconfig from secret
run: |