Skip to content

Commit

Permalink
feat(.github/workflows/staging.yml): transition from Docker build to …
Browse files Browse the repository at this point in the history
…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.
  • Loading branch information
cybersiddhu committed Aug 8, 2024
1 parent b918575 commit 9f1f54d
Showing 1 changed file with 31 additions and 14 deletions.
45 changes: 31 additions & 14 deletions .github/workflows/staging.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit 9f1f54d

Please sign in to comment.