-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ci: remove newproduction from release pipeline
- Loading branch information
Showing
1 changed file
with
1 addition
and
76 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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 }} |