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:
parent
adce351802
commit
77e4dc4516
1 changed files with 3 additions and 4 deletions
7
.github/workflows/build-and-deploy.yaml
vendored
7
.github/workflows/build-and-deploy.yaml
vendored
|
|
@ -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: |
|
||||
|
|
|
|||
Loading…
Reference in a new issue