-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: add manual deploy to production workflow
- Loading branch information
Jan Lesage
committed
Oct 9, 2024
1 parent
3eb8d42
commit eca2ffb
Showing
2 changed files
with
49 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,48 @@ | ||
name: Manual Deploy To Production (IK4) | ||
|
||
on: | ||
workflow_dispatch: | ||
inputs: | ||
version: | ||
description: 'Version (format: x.xxx.x, ie: 1.221.1)' | ||
required: true | ||
|
||
jobs: | ||
deployment: | ||
name: Deploy lambdas (Production IK4) | ||
environment: production_ik4 | ||
runs-on: ubuntu-latest | ||
strategy: | ||
matrix: | ||
services: | ||
[ | ||
'kbomutations', | ||
'kbomutationsfile', | ||
'kbosync', | ||
] | ||
steps: | ||
- name: CD | ||
id: awscurl-polling-action | ||
env: | ||
BUILD_URL: ${{ secrets.VBR_AWS_BUILD_API }}/${{matrix.services}}/prd/deploy/v4 | ||
STATUS_URL: ${{ secrets.VBR_AWS_BUILD_STATUS_API }}/${{matrix.services}}/prd/deploy/v4/status | ||
uses: informatievlaanderen/awscurl-polling-action/polling-action@deploy-v4 | ||
with: | ||
environment: prd | ||
version: ${{ github.event.inputs.version }} | ||
status-url: $STATUS_URL | ||
deploy-url: $BUILD_URL | ||
access-key: ${{ secrets.AWS_BUILD_USER_ACCESS_KEY_ID_IK4 }} | ||
secret-key: ${{ secrets.AWS_BUILD_USER_SECRET_ACCESS_KEY_IK4 }} | ||
deploy-target: 'lambda' | ||
domain: 'verenigingsregister' | ||
project: 'verenigingsregister' | ||
application: 'lambda' | ||
interval: 2 | ||
- name: output | ||
shell: bash | ||
if: always() | ||
run: | | ||
echo build-uuid: ${{ steps.awscurl-polling-action.outputs.build-uuid }} | ||
echo Status: ${{ steps.awscurl-polling-action.outputs.status }} | ||
echo ${{ steps.awscurl-polling-action.outputs.final-message }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters