Skip to content

Commit

Permalink
Update workflows to also deploy worker in mastino
Browse files Browse the repository at this point in the history
  • Loading branch information
richardhallett committed Feb 5, 2024
1 parent c9748cd commit 51c1974
Show file tree
Hide file tree
Showing 2 changed files with 34 additions and 3 deletions.
25 changes: 23 additions & 2 deletions .github/workflows/production.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ jobs:
image: ${{ matrix.image }}
dockerfile: ${{ matrix.dockerfile }}

deploy:
deploy-api:
needs: [build]
uses: ./.github/workflows/deployment.yml
with:
Expand All @@ -28,7 +28,17 @@ jobs:
secrets:
PERSONAL_ACCESS_TOKEN: ${{ secrets.PERSONAL_ACCESS_TOKEN }}

deploy-test:
deploy-worker:
needs: [build]
uses: ./.github/workflows/deployment.yml
with:
versionvar_filename: keeshond
service_name: analytics-worker
env_name: prod-eu-west
secrets:
PERSONAL_ACCESS_TOKEN: ${{ secrets.PERSONAL_ACCESS_TOKEN }}

deploy-api-test:
needs: [build]
uses: ./.github/workflows/deployment.yml
with:
Expand All @@ -37,3 +47,14 @@ jobs:
env_name: test
secrets:
PERSONAL_ACCESS_TOKEN: ${{ secrets.PERSONAL_ACCESS_TOKEN }}

deploy-worker-test:
needs: [build]
uses: ./.github/workflows/deployment.yml
with:
versionvar_filename: keeshond
service_name: analytics-worker
env_name: test
secrets:
PERSONAL_ACCESS_TOKEN: ${{ secrets.PERSONAL_ACCESS_TOKEN }}

12 changes: 11 additions & 1 deletion .github/workflows/stage.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,12 +19,22 @@ jobs:
image: ${{ matrix.image }}
dockerfile: ${{ matrix.dockerfile }}

deploy:
deploy-api:
needs: [build]
uses: ./.github/workflows/deployment.yml
with:
versionvar_filename: keeshond
service_name: analytics-api
env_name: stage
secrets:
PERSONAL_ACCESS_TOKEN: ${{ secrets.PERSONAL_ACCESS_TOKEN }}

deploy:
needs: [build]
uses: ./.github/workflows/deployment.yml
with:
versionvar_filename: keeshond
service_name: analytics-worker
env_name: stage
secrets:
PERSONAL_ACCESS_TOKEN: ${{ secrets.PERSONAL_ACCESS_TOKEN }}

0 comments on commit 51c1974

Please sign in to comment.