Skip to content

Commit

Permalink
try with different dir
Browse files Browse the repository at this point in the history
  • Loading branch information
kennyd3d committed Oct 14, 2024
1 parent 053a813 commit 331597a
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions .github/workflows/dev.yml
Original file line number Diff line number Diff line change
Expand Up @@ -63,31 +63,36 @@ jobs:
token: ${{ secrets.GH_TOKEN }} # PAT for private repos

- name: Force update local branch with remote
working-directory: ./argo-deployments
run: |
cd argo-deployments
git fetch origin main
git reset --hard origin/main # Resets to ensure you are in sync with the remote branch
git clean -fd # Removes any untracked files
- name: Update image tag in values-dev.yaml
working-directory: ./argo-deployments
run: |
sudo wget https://github.com/mikefarah/yq/releases/latest/download/yq_linux_amd64 -O /usr/bin/yq &&\
sudo chmod +x /usr/bin/yq
yq e -i '.environments.dev.image = "kennyd3d/hello-world-app:${{ needs.build.outputs.sha_short }}"' ./argo-deployments/hello-world-app/values-dev.yaml
- name: Commit files
working-directory: ./argo-deployments
run: |
git config --local user.email "github-actions[bot]@users.noreply.github.com"
git config --local user.name "github-actions[bot]"
git add .
git commit -m "[BOT] Update k8 deployment" || echo "No changes to commit"
- name: Pull the latest changes from main
working-directory: ./argo-deployments
run: |
git pull origin main --rebase
- name: Push changes
uses: ad-m/github-push-action@master
with:
branch: main
github_token: ${{ secrets.GH_TOKEN }}
github_token: ${{ secrets.GH_TOKEN }}
directory: ./argo-deployments

0 comments on commit 331597a

Please sign in to comment.