Skip to content

Commit

Permalink
ci: remove newproduction from release pipeline
Browse files Browse the repository at this point in the history
  • Loading branch information
emalfroy authored and ArneD committed Nov 10, 2023
1 parent 0a8273d commit 4273c2d
Showing 1 changed file with 1 addition and 76 deletions.
77 changes: 1 addition & 76 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -784,79 +784,4 @@ jobs:
env:
SLACK_BOT_TOKEN: ${{ secrets.VBR_SLACK_BOT_TOKEN }}
SLACK_CHANNEL: ${{ secrets.VBR_NOTIFIER_CHANNEL_NAME }}
REPOSITORY_NAME: ${{ env.REPOSITORY_NAME }}

deploy_to_newprd_start_slack:
if: github.repository_owner == 'Informatievlaanderen'
needs: [ push_images_to_new_production, deploy_to_test_finish_slack ]
name: Deploy to new production started
environment: newprd
runs-on: ubuntu-latest

steps:
- name: Parse repository name
run: echo REPOSITORY_NAME=$(echo ""$GITHUB_REPOSITORY"" | awk -F / '{print $2}' | sed -e ""s/:refs//"") >> $GITHUB_ENV
shell: bash

- name: Notify deployment started
uses: slackapi/[email protected]
with:
channel-id: '#team-dinosaur-dev'
slack-message: Deployment of municipality-registry to new production has started
env:
SLACK_BOT_TOKEN: ${{ secrets.VBR_SLACK_BOT_TOKEN }}
SLACK_CHANNEL: ${{ secrets.VBR_NOTIFIER_CHANNEL_NAME }}
REPOSITORY_NAME: ${{ env.REPOSITORY_NAME }}

deploy_to_newprd:
if: github.repository_owner == 'Informatievlaanderen'
needs: [ push_images_to_new_production, deploy_to_newprd_start_slack, release ]
name: Deploy to new production
runs-on: ubuntu-latest
strategy:
matrix:
services: ['municipality-registry-api', 'municipality-registry-projections', 'municipality-registry-producer', 'municipality-registry-producer-snapshot-oslo']

steps:
- name: CD services
env:
BUILD_URL: ${{ secrets.VBR_AWS_BUILD_API }}/${{matrix.services}}
STATUS_URL: ${{ secrets.VBR_AWS_BUILD_STATUS_API }}/${{matrix.services}}
uses: informatievlaanderen/awscurl-polling-action/polling-action@main
with:
environment: acc
version: ${{ needs.release.outputs.version }}
status-url: $STATUS_URL
deploy-url: $BUILD_URL
access-key: ${{ secrets.VBR_AWS_BUILD_USER_ACCESS_KEY_ID }}
secret-key: ${{ secrets.VBR_AWS_BUILD_USER_SECRET_ACCESS_KEY }}
region: eu-west-1
interval: 2

- 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 }}
deploy_to_newprd_finish_slack:
if: github.repository_owner == 'Informatievlaanderen'
needs: [ deploy_to_newprd ]
name: Deploy to new production finished
runs-on: ubuntu-latest

steps:
- name: Parse repository name
run: echo REPOSITORY_NAME=$(echo ""$GITHUB_REPOSITORY"" | awk -F / '{print $2}' | sed -e ""s/:refs//"") >> $GITHUB_ENV
shell: bash

- name: Notify deployment finished
uses: slackapi/[email protected]
with:
channel-id: '#team-dinosaur-dev'
slack-message: Deployment of municipality-registry to new production has finished
env:
SLACK_BOT_TOKEN: ${{ secrets.VBR_SLACK_BOT_TOKEN }}
SLACK_CHANNEL: ${{ secrets.VBR_NOTIFIER_CHANNEL_NAME }}
REPOSITORY_NAME: ${{ env.REPOSITORY_NAME }}
REPOSITORY_NAME: ${{ env.REPOSITORY_NAME }}

0 comments on commit 4273c2d

Please sign in to comment.