Skip to content

Promotion Production Environment #3

Promotion Production Environment

Promotion Production Environment #3

# ------------------------------------------------------------------------------
# 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