From 0780ab5cbc31a961c9128d6cb90e38afb729a6b3 Mon Sep 17 00:00:00 2001 From: Woshiluo Luo Date: Mon, 7 Oct 2024 12:42:41 +0800 Subject: [PATCH] feat: auto sync to argocd --- .github/workflows/docker_cd.yml | 20 +++++++++----------- 1 file changed, 9 insertions(+), 11 deletions(-) diff --git a/.github/workflows/docker_cd.yml b/.github/workflows/docker_cd.yml index 43d407c..2083a4c 100644 --- a/.github/workflows/docker_cd.yml +++ b/.github/workflows/docker_cd.yml @@ -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 github-actions@github.com -# 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 github-actions@github.com + 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