Skip to content

Commit

Permalink
update build
Browse files Browse the repository at this point in the history
  • Loading branch information
Raajheer1 committed May 24, 2024
1 parent 727b01b commit 45ffef6
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions .github/workflows/build_deploy.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 45ffef6

Please sign in to comment.