Skip to content

Commit

Permalink
feat: auto sync to argocd
Browse files Browse the repository at this point in the history
  • Loading branch information
woshiluo committed Oct 7, 2024
1 parent fb06e38 commit 0780ab5
Showing 1 changed file with 9 additions and 11 deletions.
20 changes: 9 additions & 11 deletions .github/workflows/docker_cd.yml
Original file line number Diff line number Diff line change
Expand Up @@ -46,15 +46,13 @@ jobs:
ssh-key: ${{ secrets.ARGO_KEY_SSH }}
path: deploy

# - name: Update ArgoCD
# run: |
# cd deploy/tutu
# git config user.name github-actions
# git config user.email [email protected]
# sed -i "s|^\(\s*image:\s*.*:\)[0-9]\+|\1${{ steps.gen-tag.outputs.tag }}|" ./tutu/tutu-deployment.yml
# sed -i "s|^\(\s*image:\s*.*:\)[0-9]\+|\1${{ steps.gen-tag.outputs.tag }}|" ./rsa-web-api/rsa-web-api-deployment.yml
# sed -i "s|^\(\s*image:\s*.*:\)[0-9]\+|\1${{ steps.gen-tag.outputs.tag }}|" ./blog-mysql/blog-mysql-deployment.yml
# git add .
# git commit -m "update: image"
# git push
- name: Update ArgoCD
run: |
cd depoly/vidarwebsite
git config user.name github-actions
git config user.email [email protected]
sed -i "s|^\(\s*image:\s*.*:\)[0-9]\+|\1${{ steps.gen-tag.outputs.tag }}|" ./mainpage-sync.yml
git add .
git commit -m "update: image of mainpage"
git push

0 comments on commit 0780ab5

Please sign in to comment.