Skip to content

Commit

Permalink
refactor(ci.yml): streamline deployment jobs into a single job for mu…
Browse files Browse the repository at this point in the history
…ltiple apps

This change consolidates the deployment of the frontpage, stockcenter,
and publication applications into a single CI job. This reduces
redundancy and simplifies the CI configuration by using a single job to
deploy multiple related applications. The use of a combined docker image
and dockerfile parameter for all three applications further centralizes
the deployment process, making it more efficient and easier to manage.
  • Loading branch information
cybersiddhu committed Aug 10, 2024
1 parent 9f1f54d commit 48e8ffc
Showing 1 changed file with 4 additions and 32 deletions.
36 changes: 4 additions & 32 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,44 +22,16 @@ jobs:
uses: codecov/codecov-action@v4
with:
token: ${{ secrets.CODECOV }}
call-frontpage-deploy:
call-deploy:
needs: test
uses: dictyBase/workflows/.github/workflows/composite-deploy.yaml@develop
secrets: inherit
with:
app: frontpage
app: frontpage:stockcenter:publication
repository: ${{ github.repository }}
ref: ${{ github.ref_name }}
docker_image: dicty-frontpage
dockerfile: "docker/Dockerfile.frontpage"
cluster: ${{ vars.DEV_STAGING_CLUSTER }}
cluster_state_storage: ${{ vars.DEV_STAGING_KOPS_STATE_STORAGE }}
project: frontend_application
application_type: frontend
call-stockcenter-deploy:
needs: call-frontpage-deploy
uses: dictyBase/workflows/.github/workflows/composite-deploy.yaml@develop
secrets: inherit
with:
app: stockcenter
repository: ${{ github.repository }}
ref: ${{ github.ref_name }}
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
call-publication-deploy:
needs: call-stockcenter-deploy
uses: dictyBase/workflows/.github/workflows/composite-deploy.yaml@develop
secrets: inherit
with:
app: publication
repository: ${{ github.repository }}
ref: ${{ github.ref_name }}
dockerfile: docker/Dockerfile.publication
docker_image: publication
docker_image: dicty-frontpage:stock-center:publication
dockerfile: docker/Dockerfile.frontpage:docker/Dockerfile.stock-center:docker/Dockerfile.publication
cluster: ${{ vars.DEV_STAGING_CLUSTER }}
cluster_state_storage: ${{ vars.DEV_STAGING_KOPS_STATE_STORAGE }}
project: frontend_application
Expand Down

0 comments on commit 48e8ffc

Please sign in to comment.