diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 092e1b9a..87efdf28 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -751,18 +751,15 @@ jobs: aws-region: ${{ secrets.VBR_AWS_REGION_PRD }} - name: Promote Lambda(s) - shell: bash - run: | - echo pulling awscurl docker image - docker pull ghcr.io/okigan/awscurl:latest - echo docker run --rm okigan/awscurl --access_key $ACCESS_KEY_ID --secret_key $SECRET_ACCESS_KEY_ID --region $REGION -X POST -d '{ "deploy_target": "lambda", "version": "'$SEMVER'" }' $PROMOTEURL/par-sqsbackofficefunction/tst/deploy/v4/ - docker run --rm okigan/awscurl --access_key $ACCESS_KEY_ID --secret_key $SECRET_ACCESS_KEY_ID --region $REGION -X POST -d '{ "deploy_target": "lambda", "version": "'$SEMVER'" }' $PROMOTEURL/par-sqsbackofficefunction/tst/deploy/v4/ - env: - ACCESS_KEY_ID: ${{ secrets.VBR_AWS_ACCESS_KEY_ID_DEVOPS }} - SECRET_ACCESS_KEY_ID: ${{ secrets.VBR_AWS_SECRET_ACCESS_KEY_DEVOPS }} - REGION: ${{ secrets.VBR_AWS_REGION_PRD }} - PROMOTEURL: ${{ vars.VBR_AWS_DEPLOY_LAMBDA_DEVOPS_BASEURL }} - SEMVER: ${{ needs.release.outputs.version }} + uses: Informatievlaanderen/build-pipeline/.github/actions/deploy-lambda@main + with: + function-name: par-sqsbackofficefunction + deploy-url: ${{ vars.VBR_AWS_DEPLOY_LAMBDA_DEVOPS_BASEURL }} + access-key-id: ${{ secrets.VBR_AWS_ACCESS_KEY_ID_DEVOPS }} + secret-access-key-id: ${{ secrets.VBR_AWS_SECRET_ACCESS_KEY_DEVOPS }} + region: ${{ secrets.VBR_AWS_REGION_PRD }} + version: ${{ needs.release.outputs.version }} + environment: tst deploy_to_test_finish_slack: if: github.repository_owner == 'Informatievlaanderen' @@ -900,18 +897,15 @@ jobs: aws-region: ${{ secrets.VBR_AWS_REGION_PRD }} - name: Promote Lambda(s) - shell: bash - run: | - echo pulling awscurl docker image - docker pull ghcr.io/okigan/awscurl:latest - echo docker run --rm okigan/awscurl --access_key $ACCESS_KEY_ID --secret_key $SECRET_ACCESS_KEY_ID --region $REGION -X POST -d '{ "deploy_target": "lambda", "version": "'$SEMVER'" }' $PROMOTEURL/par-sqsbackofficefunction/stg/deploy/v4/ - docker run --rm okigan/awscurl --access_key $ACCESS_KEY_ID --secret_key $SECRET_ACCESS_KEY_ID --region $REGION -X POST -d '{ "deploy_target": "lambda", "version": "'$SEMVER'" }' $PROMOTEURL/par-sqsbackofficefunction/stg/deploy/v4/ - env: - ACCESS_KEY_ID: ${{ secrets.VBR_AWS_ACCESS_KEY_ID_DEVOPS }} - SECRET_ACCESS_KEY_ID: ${{ secrets.VBR_AWS_SECRET_ACCESS_KEY_DEVOPS }} - REGION: ${{ secrets.VBR_AWS_REGION_PRD }} - PROMOTEURL: ${{ vars.VBR_AWS_DEPLOY_LAMBDA_DEVOPS_BASEURL }} - SEMVER: ${{ needs.release.outputs.version }} + uses: Informatievlaanderen/build-pipeline/.github/actions/deploy-lambda@main + with: + function-name: par-sqsbackofficefunction + deploy-url: ${{ vars.VBR_AWS_DEPLOY_LAMBDA_DEVOPS_BASEURL }} + access-key-id: ${{ secrets.VBR_AWS_ACCESS_KEY_ID_DEVOPS }} + secret-access-key-id: ${{ secrets.VBR_AWS_SECRET_ACCESS_KEY_DEVOPS }} + region: ${{ secrets.VBR_AWS_REGION_PRD }} + version: ${{ needs.release.outputs.version }} + environment: stg deploy_to_new_stg_finish_slack: if: github.repository_owner == 'Informatievlaanderen'