Skip to content

Manual Deploy To Staging (IK4) #2

Manual Deploy To Staging (IK4)

Manual Deploy To Staging (IK4) #2

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:
environment: staging_ik4
runs-on: ubuntu-latest
strategy:
matrix:
services:
[
'acmapi',
'publicapi',
'publicprojections',
'adminapi',
'adminprojections',
]
steps:
- name: CD
env:
BUILD_URL: ${{ secrets.VBR_AWS_BUILD_API_STAGING }}/${{matrix.services}}
STATUS_URL: ${{ secrets.VBR_AWS_BUILD_STATUS_API_STAGING_IK4 }}/${{matrix.services}}
uses: informatievlaanderen/awscurl-polling-action/polling-action@main
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 }}
region: eu-west-1
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 }}