Production deployment
Production deployment, by default once a day, takes the latest version that has passed extended test and deploys it to production.
Production deployment also runs an image security scan before deploying the version.
Implement the following Make targets:
Usage
Applications created from software templates include the following workflow.
name: Prod
on:
workflow_dispatch:
schedule:
- cron: "35 5 * * 1,5"
permissions:
contents: read
id-token: write
jobs:
get-latest-version:
uses: coreeng/p2p/.github/workflows/p2p-get-latest-image-prod.yaml@v1
with:
image-name: knowledge-platform
prod:
needs: [get-latest-version]
uses: coreeng/p2p/.github/workflows/p2p-workflow-prod.yaml@v1
with:
version: ${{ needs.get-latest-version.outputs.version }}This task will get the latest version that’s on the prod registry and execute the prod deployment task.