Promotion Production Environment #3
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
# ------------------------------------------------------------------------------ | |
# Github Workflow to promote to production environment | |
# | |
# - This pipeline is triggered by a github Pull Request/merge | |
# | |
# 1) Checks out prod branch | |
# 2) Run an import of all assets for this project in wM.io PROD environment | |
# 3) Run predefined tests for this project in wM.io PROD environment | |
# | |
# ------------------------------------------------------------------------------ | |
name: Deployment Prod | |
run-name: Promotion Production Environment | |
on: | |
push: | |
branches: | |
- production | |
paths: | |
- 'assets/**' | |
jobs: | |
# ------------------------------- | |
# Import test assets to wM.io | |
# ------------------------------- | |
Promote-Assets: | |
uses: HMHansson/ICA-DevOps/.github/workflows/promote.yml@main | |
secrets: inherit | |
with: | |
environment: Production | |
# ------------------------------- | |
# Validate PROD with test cases | |
# ------------------------------- | |
QA-Prod: | |
if: ${{ always() && contains(join(needs.*.result, ','), 'success') }} | |
needs: [Promote-Assets] | |
uses: HMHansson/ICA-DevOps/.github/workflows/validation-bruno.yml@main | |
secrets: inherit | |
with: | |
environment: Production | |