Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

EM-494 Production pipeline setup #78

Merged
merged 3 commits into from
Nov 7, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 10 additions & 0 deletions azure/azure-release-pipeline.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@ extends:
service_name: ${{ variables.service_name }}
short_service_name: ${{ variables.short_service_name }}
service_base_path: ${{ variables.service_base_path }}
prod_producer_approval: true
apigee_deployments:
- environment: internal-dev
post_deploy:
Expand Down Expand Up @@ -66,3 +67,12 @@ extends:
app_id: "0d334714-4548-4cf7-8b7f-ac194f341bc6"
full: true
test_command: make test-prod
- environment: prod
depends_on:
- int
post_deploy:
- template: ./templates/run-tests.yml
parameters:
app_id: "TODO - create a test app before merging. Will need manual approval"
dlzhry2nhs marked this conversation as resolved.
Show resolved Hide resolved
full: true
test_command: make test-prod
8 changes: 6 additions & 2 deletions manifest_template.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
SERVICE_NAME: multicast-notification-service
PRODUCT_DISPLAY_NAME: multicast-notification-service
DESCRIPTION: example description
DESCRIPTION: The multicast notification service
APIGEE_ENVIRONMENTS:
- name: internal-dev
display_name: Internal Development
Expand All @@ -26,6 +26,9 @@ APIGEE_ENVIRONMENTS:
portal_visibility: true
- name: int
display_name: Integration Testing
- name: prod
approval_type: manual
display_name: Production
---
meta:
api:
Expand All @@ -39,10 +42,11 @@ apigee:
{% for ENV in APIGEE_ENVIRONMENTS %}
{% set TITLE = PRODUCT_DISPLAY_NAME + ' (' + ENV.display_name + ' Environment)' %}
{% set NAME = SERVICE_NAME + '-' + ENV.name %}
{% set APPROVAL_TYPE = ENV.approval_type | default('auto') %}
- name: {{ ENV.name }}
products:
- name: {{ NAME }}
approvalType: auto
approvalType: {{ APPROVAL_TYPE }}
attributes:
- name: access
value: public
Expand Down
Loading