From cbb3677cf4175d14cb41a991394b85455461415b Mon Sep 17 00:00:00 2001 From: Jan Lesage Date: Wed, 3 Apr 2024 10:38:53 +0200 Subject: [PATCH] feat: add workflow with prd-new target --- .github/workflows/production-new-manual.yml | 50 +++++++++++++++++++++ 1 file changed, 50 insertions(+) create mode 100644 .github/workflows/production-new-manual.yml diff --git a/.github/workflows/production-new-manual.yml b/.github/workflows/production-new-manual.yml new file mode 100644 index 000000000..bc0320107 --- /dev/null +++ b/.github/workflows/production-new-manual.yml @@ -0,0 +1,50 @@ +name: Manual Production NEW + +on: + workflow_dispatch: + inputs: + version: + description: 'Version (format: x.xxx.x, ie: 1.221.1)' + required: true + +jobs: + deployment: + runs-on: ubuntu-latest + strategy: + matrix: + services: + [ + 'organisation-registry-api', + 'organisation-registry-delegations', + 'organisation-registry-elasticsearch', + 'organisation-registry-kbomutations', + 'organisation-registry-reporting', + 'organisation-registry-ui', + 'organisation-registry-vlaanderenbe', + 'organisation-registry-zorgengezondheid', + ] + steps: + - name: CD + env: + BUILD_URL: ${{ vars.VBR_AWS_BUILD_API_DEVOPS }}/${{matrix.services}} + STATUS_URL: ${{ vars.VBR_AWS_BUILD_STATUS_API_DEVOPS }}/${{matrix.services}} + uses: informatievlaanderen/awscurl-polling-action/polling-action@main + 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_DEVOPS }} + secret-key: ${{ secrets.VBR_AWS_BUILD_USER_SECRET_ACCESS_KEY_DEVOPS }} + region: eu-west-1 + interval: 2 + deploy-target: 'agb_ecs_service' + domain: 'basisregisters' + project: 'basisregisters' + + - name: Output CD services + shell: bash + 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 }}