From 9f1f54d871d6d259c6fc6ce7cbcd5322dae6aff7 Mon Sep 17 00:00:00 2001 From: Siddhartha Basu Date: Thu, 8 Aug 2024 18:41:00 -0500 Subject: [PATCH] feat(.github/workflows/staging.yml): transition from Docker build to composite deployment workflow This change updates the GitHub Actions workflow for the staging environment by replacing the Docker build and push jobs with composite deployment jobs. This allows for a more integrated deployment process that includes additional deployment parameters such as cluster configuration and environment specifics. The update ensures that the deployment process is more aligned with the infrastructure and deployment strategies, such as using Kubernetes clusters and managing environments more effectively. This change also introduces dependencies between jobs to ensure that deployments are executed in the correct order, enhancing the reliability of the deployment process. --- .github/workflows/staging.yml | 45 ++++++++++++++++++++++++----------- 1 file changed, 31 insertions(+), 14 deletions(-) diff --git a/.github/workflows/staging.yml b/.github/workflows/staging.yml index c33436e4a..e6b1ad412 100644 --- a/.github/workflows/staging.yml +++ b/.github/workflows/staging.yml @@ -4,30 +4,47 @@ on: branches: - staging jobs: - call-frontpage-docker-build: - uses: dictyBase/workflows/.github/workflows/docker-build-push-mode.yaml@develop + call-frontpage-deploy: + uses: dictyBase/workflows/.github/workflows/composite-deploy.yaml@develop secrets: inherit with: + app: frontpage repository: ${{ github.repository }} ref: ${{ github.ref_name }} + docker_image: dicty-frontpage dockerfile: "docker/Dockerfile.frontpage" - dockerrepo: "dictybase/dicty-frontpage" - build_state: staging - call-dsc-docker-build: - uses: dictyBase/workflows/.github/workflows/docker-build-push-mode.yaml@develop + cluster: ${{ vars.DEV_STAGING_CLUSTER }} + cluster_state_storage: ${{ vars.DEV_STAGING_KOPS_STATE_STORAGE }} + project: frontend_application + application_type: frontend + environment: staging + call-stockcenter-deploy: + needs: call-frontpage-deploy + uses: dictyBase/workflows/.github/workflows/composite-deploy.yaml@develop secrets: inherit with: - build_state: staging + app: stockcenter repository: ${{ github.repository }} ref: ${{ github.ref_name }} - dockerfile: "docker/Dockerfile.stock-center" - dockerrepo: "dictybase/stock-center" - call-publication-docker-build: - uses: dictyBase/workflows/.github/workflows/docker-build-push-mode.yaml@develop + docker_image: stock-center + dockerfile: docker/Dockerfile.stock-center + cluster: ${{ vars.DEV_STAGING_CLUSTER }} + cluster_state_storage: ${{ vars.DEV_STAGING_KOPS_STATE_STORAGE }} + project: frontend_application + application_type: frontend + environment: staging + call-publication-deploy: + needs: call-stockcenter-deploy + uses: dictyBase/workflows/.github/workflows/composite-deploy.yaml@develop secrets: inherit with: - build_state: staging + app: publication repository: ${{ github.repository }} ref: ${{ github.ref_name }} - dockerfile: "docker/Dockerfile.publication" - dockerrepo: "dictybase/publication" + dockerfile: docker/Dockerfile.publication + docker_image: publication + cluster: ${{ vars.DEV_STAGING_CLUSTER }} + cluster_state_storage: ${{ vars.DEV_STAGING_KOPS_STATE_STORAGE }} + project: frontend_application + application_type: frontend + environment: staging