Update integration.yml #106
Workflow file for this run
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
name: Deploy to MoJ Cloud Platform | ||
on: | ||
workflow_dispatch: | ||
push: | ||
branches: | ||
# - 'main' # protect main during initial development | ||
- 'develop' | ||
- 'ip-develop' | ||
concurrency: | ||
group: ${{ github.workflow }}-${{ github.ref }} | ||
cancel-in-progress: true | ||
jobs: | ||
image: | ||
name: "Image" | ||
if: github.event.ref == 'refs/heads/ip-develop' | ||
uses: ./.github/workflows/build.yml | ||
secrets: inherit | ||
ips: | ||
name: "IPs" | ||
if: github.event.ref == 'refs/heads/ip-develop' | ||
uses: ./.github/workflows/ips.yml | ||
secrets: inherit | ||
deploy_dev: | ||
name: "Development" | ||
if: github.event.ref == 'refs/heads/ip-develop' | ||
uses: ./.github/workflows/deploy.yml | ||
needs: [image, ips] | ||
with: | ||
environment: development | ||
registry: ${{ needs.image.outputs.registry }} | ||
ips: test | ||
secrets: inherit | ||
deploy_staging: | ||
name: "Staging" | ||
needs: [image, deploy_dev] | ||
if: github.event.ref == 'refs/heads/develop' | ||
uses: ./.github/workflows/deploy.yml | ||
Check failure on line 43 in .github/workflows/integration.yml GitHub Actions / Deploy to MoJ Cloud PlatformInvalid workflow file
|
||
with: | ||
environment: staging | ||
registry: ${{ needs.image.outputs.registry }} | ||
secrets: inherit | ||
deploy_demo: | ||
name: "Demo" | ||
needs: [image, deploy_dev] | ||
if: github.event.ref == 'refs/heads/develop' | ||
uses: ./.github/workflows/deploy.yml | ||
with: | ||
environment: demo | ||
registry: ${{ needs.image.outputs.registry }} | ||
secrets: inherit | ||
deploy_production: | ||
name: "Production" | ||
needs: [image, deploy_staging] | ||
if: github.event.ref == 'refs/heads/develop' | ||
uses: ./.github/workflows/deploy.yml | ||
with: | ||
environment: production | ||
registry: ${{ needs.image.outputs.registry }} | ||
secrets: inherit | ||