From 51c1974c6c161a6abb69f963f6cd8e952caaa125 Mon Sep 17 00:00:00 2001 From: Richard Hallett Date: Mon, 5 Feb 2024 13:50:47 +0100 Subject: [PATCH] Update workflows to also deploy worker in mastino --- .github/workflows/production.yml | 25 +++++++++++++++++++++++-- .github/workflows/stage.yml | 12 +++++++++++- 2 files changed, 34 insertions(+), 3 deletions(-) diff --git a/.github/workflows/production.yml b/.github/workflows/production.yml index a2463f9..1fead62 100644 --- a/.github/workflows/production.yml +++ b/.github/workflows/production.yml @@ -18,7 +18,7 @@ jobs: image: ${{ matrix.image }} dockerfile: ${{ matrix.dockerfile }} - deploy: + deploy-api: needs: [build] uses: ./.github/workflows/deployment.yml with: @@ -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: @@ -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 }} + diff --git a/.github/workflows/stage.yml b/.github/workflows/stage.yml index 7eaa4e8..ebd2bac 100644 --- a/.github/workflows/stage.yml +++ b/.github/workflows/stage.yml @@ -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 }} \ No newline at end of file