From 4a11ce9025defe202b44bf4c21353e4dd4676a8f Mon Sep 17 00:00:00 2001 From: dv-hossam-radwan Date: Thu, 23 May 2024 09:57:02 +0200 Subject: [PATCH] add deployment with argocd --- .github/argocd-deployed-apps.json | 3 +++ .github/workflows/build-product.yml | 4 ++-- .github/workflows/deploy-product.yml | 2 +- 3 files changed, 6 insertions(+), 3 deletions(-) create mode 100644 .github/argocd-deployed-apps.json diff --git a/.github/argocd-deployed-apps.json b/.github/argocd-deployed-apps.json new file mode 100644 index 00000000..7c22f14f --- /dev/null +++ b/.github/argocd-deployed-apps.json @@ -0,0 +1,3 @@ +{ + "apps": ["test_release_repo", "test"] +} \ No newline at end of file diff --git a/.github/workflows/build-product.yml b/.github/workflows/build-product.yml index f24f2a98..d28fa229 100644 --- a/.github/workflows/build-product.yml +++ b/.github/workflows/build-product.yml @@ -27,7 +27,7 @@ env: TIME_ZONE: "Europe/Vienna" NODE_VERSION: "20.9" PYTHON_VERSION: "3.10" - WORKFLOW_BRANCH: "main" + WORKFLOW_BRANCH: "feat-deploy-with-argocd" PYTHON_BASE_IMAGE: "python:3.10.8-slim-bullseye" DATAVISYN_PYTHON_BASE_IMAGE: "188237246440.dkr.ecr.eu-central-1.amazonaws.com/datavisyn/base/python:main" DATAVISYN_NGINX_BASE_IMAGE: "188237246440.dkr.ecr.eu-central-1.amazonaws.com/datavisyn/base/nginx:main" @@ -169,4 +169,4 @@ jobs: workflow_file_name: "deploy-app.yml" ref: ${{ env.WORKFLOW_BRANCH }} github_user: ${{ secrets.DV_BOT_USER }} - client_payload: '{ "app": "${{ needs.prepare-build.outputs.app }}", "customer": "${{ steps.get-parameters.outputs.customer }}", "stage": "${{ steps.get-parameters.outputs.stage }}", "sub_app": "${{ needs.prepare-build.outputs.sub_app }}", "branch": "${{ needs.prepare-build.outputs.image_tag2 }}" }' + client_payload: '{ "app": "${{ needs.prepare-build.outputs.app }}", "customer": "${{ steps.get-parameters.outputs.customer }}", "stage": "${{ steps.get-parameters.outputs.stage }}", "sub_app": "${{ needs.prepare-build.outputs.sub_app }}", "branch": "${{ needs.prepare-build.outputs.image_tag2 }}", "image_tag": "${{ needs.prepare-build.outputs.image_tag1 }}" }' diff --git a/.github/workflows/deploy-product.yml b/.github/workflows/deploy-product.yml index 50c90730..1dac573c 100644 --- a/.github/workflows/deploy-product.yml +++ b/.github/workflows/deploy-product.yml @@ -38,7 +38,7 @@ concurrency: env: GA_VERSION: "main" - WORKFLOW_BRANCH: "main" + WORKFLOW_BRANCH: "feat-deploy-with-argocd" jobs: deploy: