We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
Update GitHub Actions workflow to set GITHUB_TOKEN and modify git remote URL
1 parent e14e5ec commit b96be6fCopy full SHA for b96be6f
.github/workflows/kustomize-ci.yaml
@@ -68,10 +68,15 @@ jobs:
68
sed -i.bak -E "s|image:.*|image: ${IMAGE_NAME}:${IMAGE_TAG}|" "$FILE"
69
70
- name: Commit and push changes
71
+ env:
72
+ GITHUB_TOKEN: ${{ secrets.GIT_PAT }}
73
run: |
74
git config --global user.name ${{ secrets.GIT_USER_EMAIL }}
75
git config --global user.email ${{ secrets.GIT_USER_NAME }}
76
77
+ git remote set-url origin https://x-access-token:${TOKEN}@github.com/${{ github.repository }}.git
78
+
79
80
git add kustomize/overlays/dev/patch-deployment-image.yaml
81
git commit -m "Update latest image tag to $IMAGE_TAG"
82
git push
0 commit comments