Skip to content

Commit

Permalink
fix: or-2441 use new deployment and status api for staging environment
Browse files Browse the repository at this point in the history
  • Loading branch information
Jan Lesage committed Oct 1, 2024
1 parent 44c7263 commit b9e92dc
Show file tree
Hide file tree
Showing 2 changed files with 49 additions and 0 deletions.
48 changes: 48 additions & 0 deletions .github/workflows/manual-ik4-staging.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,48 @@
name: Manual Deploy To Staging (IK4)

on:
workflow_dispatch:
inputs:
version:
description: 'Version (format: x.xxx.x, ie: 1.221.1)'
required: true

jobs:
deployment:
name: Deploy lambdas (Staging IK4)
environment: staging_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}}/staging/deploy/v4
STATUS_URL: ${{ secrets.VBR_AWS_BUILD_STATUS_API }}/${{matrix.services}}/staging/deploy/v4/status
uses: informatievlaanderen/awscurl-polling-action/polling-action@deploy-v4
with:
environment: staging
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 }}
1 change: 1 addition & 0 deletions AssociationRegistry.KboMutations.sln
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "workflows", "workflows", "{
ProjectSection(SolutionItems) = preProject
.github\workflows\main.yml = .github\workflows\main.yml
.github\workflows\manual-ik4-test.yml = .github\workflows\manual-ik4-test.yml
.github\workflows\manual-ik4-staging.yml = .github\workflows\manual-ik4-staging.yml
EndProjectSection
EndProject
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "src", "src", "{46991FC7-44B8-4EA2-A2C2-2CDDBAD1091D}"
Expand Down

0 comments on commit b9e92dc

Please sign in to comment.