diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 47b9a74..f072fba 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -442,7 +442,7 @@ jobs: 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: 'ecs' + deploy-target: 'lambda' domain: 'verenigingsregister' project: 'verenigingsregister' application: 'lambda' diff --git a/.github/workflows/manual-ik4-test.yml b/.github/workflows/manual-ik4-test.yml new file mode 100644 index 0000000..22a3864 --- /dev/null +++ b/.github/workflows/manual-ik4-test.yml @@ -0,0 +1,48 @@ +name: Manual Deploy To Test (IK4) + +on: + workflow_dispatch: + inputs: + version: + description: 'Version (format: x.xxx.x, ie: 1.221.1)' + required: true + +jobs: + deployment: + name: Deploy lambdas (Test IK4) + environment: test_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}}/test/deploy/v4 + STATUS_URL: ${{ secrets.VBR_AWS_BUILD_STATUS_API }}/${{matrix.services}}/test/deploy/v4/status + uses: informatievlaanderen/awscurl-polling-action/polling-action@deploy-v4 + with: + environment: test + 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 }} diff --git a/AssociationRegistry.KboMutations.sln b/AssociationRegistry.KboMutations.sln index 7364b5c..3c6c65d 100644 --- a/AssociationRegistry.KboMutations.sln +++ b/AssociationRegistry.KboMutations.sln @@ -23,6 +23,7 @@ EndProject Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "workflows", "workflows", "{9782E370-0162-43D1-B446-49564347E856}" ProjectSection(SolutionItems) = preProject .github\workflows\main.yml = .github\workflows\main.yml + .github\workflows\manual-ik4-test.yml = .github\workflows\manual-ik4-test.yml EndProjectSection EndProject Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "src", "src", "{46991FC7-44B8-4EA2-A2C2-2CDDBAD1091D}"