From 0b1d189ea361e041fe33c4d933262b112c5fe750 Mon Sep 17 00:00:00 2001 From: Narekmat <47845266+Narekmat@users.noreply.github.com> Date: Fri, 2 Feb 2024 14:49:01 +0400 Subject: [PATCH] change workflow to use new dev env (#1599) Co-authored-by: Narek Matevosyan --- .github/workflows/main-build.yaml | 19 ++++--------------- 1 file changed, 4 insertions(+), 15 deletions(-) diff --git a/.github/workflows/main-build.yaml b/.github/workflows/main-build.yaml index bf25a5c89..4c99cb548 100644 --- a/.github/workflows/main-build.yaml +++ b/.github/workflows/main-build.yaml @@ -51,24 +51,13 @@ jobs: steps: - uses: actions/checkout@v3 with: - repository: provectus/environment-state + repository: opendatadiscovery/saas-iac + ref: development token: ${{ secrets.ODD_GIT_TOKEN }} - run: | - sed -i "s/tag:.*/tag: ci-${GITHUB_SHA::6}/" main/odd-platform.yaml + sed -i "s/tag:.*/tag: ci-${GITHUB_SHA::6}/" states/main/eu-central-1/development/argocd/odd-platform/demo.yaml git config user.name github-actions git config user.email github-actions@github.com git add . git commit --allow-empty -m "update tag" - git push - argocd_sync: - needs: ['update_tag'] - runs-on: ubuntu-latest - steps: - - name: Install ArgoCD CLI - run: | - curl -sSL -o ./argocd https://github.com/argoproj/argo-cd/releases/latest/download/argocd-linux-amd64 - chmod +x ./argocd - - name: Login into ArgoCD - run: ./argocd login ${{ secrets.ARGOCD_SERVER }} --username ${{ secrets.ARGOCD_LOGIN }} --password '${{ secrets.ARGOCD_PASSWORD }}' --grpc-web - - name: Sync ODD Platform application - run: ./argocd app sync environments --force --resource argoproj.io:Application:odd-platform + git push \ No newline at end of file