Skip to content

Commit

Permalink
change workflow to use new dev env (#1599)
Browse files Browse the repository at this point in the history
Co-authored-by: Narek Matevosyan <[email protected]>
  • Loading branch information
Narekmat and Narek Matevosyan authored Feb 2, 2024
1 parent deec532 commit 0b1d189
Showing 1 changed file with 4 additions and 15 deletions.
19 changes: 4 additions & 15 deletions .github/workflows/main-build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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 [email protected]
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

0 comments on commit 0b1d189

Please sign in to comment.