-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
4 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -54,16 +54,17 @@ jobs: | |
uses: imranismail/setup-kustomize@v2 | ||
- name: Update manifests | ||
run: | | ||
echo "$(echo ${{ github.sha }} | cut -c1-7)" > TAG | ||
cd $GITHUB_WORKSPACE/gitops/overlays/dev | ||
kustomize edit set image vatusa/${{ secrets.REPOSITORY_NAME }}=vatusa/${{ secrets.REPOSITORY_NAME }}:${{ github.sha }} | ||
kustomize edit set image vatusa/${{ secrets.REPOSITORY_NAME }}=vatusa/${{ secrets.REPOSITORY_NAME }}:$(cat TAG) | ||
- name: Commit and push changes | ||
run: | | ||
cd $GITHUB_WORKSPACE/gitops | ||
git config --global user.email "[email protected]" | ||
git config --global user.name "VATUSA6" | ||
echo ${{ github.sha }} | ||
echo $(cat TAG) | ||
git add . | ||
git commit -m "Update primary-api image tag to ${{ github.sha }}" | ||
git commit -m "Update primary-api image tag to $(cat TAG)" | ||
- name: Push to gitops repo | ||
run: | | ||
cd $GITHUB_WORKSPACE/gitops | ||
|