Skip to content

Commit

Permalink
ci: or-2583 add deploy lambdas to manual stg & prd deploy
Browse files Browse the repository at this point in the history
  • Loading branch information
emalfroy committed Jan 27, 2025
1 parent 2768a6f commit 2391c30
Show file tree
Hide file tree
Showing 2 changed files with 76 additions and 0 deletions.
37 changes: 37 additions & 0 deletions .github/workflows/production-manual-ik4.yml
Original file line number Diff line number Diff line change
Expand Up @@ -86,3 +86,40 @@ jobs:
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 }}
deployment_lambdas:
name: Deploy lambdas
environment: production_ik4
runs-on: ubuntu-latest
strategy:
matrix:
services:
[
'kbosync',
]
steps:
- name: CD
id: awscurl-polling-action
env:
BUILD_URL: ${{ secrets.VBR_AWS_BUILD_API }}/kbosync/prd/deploy/v4
STATUS_URL: ${{ secrets.VBR_AWS_BUILD_STATUS_API }}/kbosync/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.VBR_AWS_BUILD_USER_ACCESS_KEY_ID_IK4 }}
secret-key: ${{ secrets.VBR_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 }}
39 changes: 39 additions & 0 deletions .github/workflows/staging-manual-ik4.yml
Original file line number Diff line number Diff line change
Expand Up @@ -86,3 +86,42 @@ jobs:
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 }}
deployment:
deployment_lambdas:
name: Deploy lambdas
environment: staging_ik4
runs-on: ubuntu-latest
strategy:
matrix:
services:
[
'kbosync',
]
steps:
- name: CD
id: awscurl-polling-action
env:
BUILD_URL: ${{ secrets.VBR_AWS_BUILD_API }}/kbosync/stg/deploy/v4
STATUS_URL: ${{ secrets.VBR_AWS_BUILD_STATUS_API }}/kbosync/stg/deploy/v4/status
uses: informatievlaanderen/awscurl-polling-action/polling-action@deploy-v4
with:
environment: stg
version: ${{ github.event.inputs.version }}
status-url: $STATUS_URL
deploy-url: $BUILD_URL
access-key: ${{ secrets.VBR_AWS_BUILD_USER_ACCESS_KEY_ID_IK4 }}
secret-key: ${{ secrets.VBR_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 }}

0 comments on commit 2391c30

Please sign in to comment.