Skip to content

chore(deps): set version for pr-close workflow #4043

chore(deps): set version for pr-close workflow

chore(deps): set version for pr-close workflow #4043

Workflow file for this run

name: PR
on:
pull_request:
concurrency:
# Cancel in progress for PR open and close
group: ${{ github.workflow }}-${{ github.event.number }}
cancel-in-progress: true
jobs:
# https://github.com/bcgov-nr/action-builder-ghcr
builds:
name: Builds
runs-on: ubuntu-22.04
permissions:
packages: write
outputs:
digest: ${{ steps.builds.outputs.digest }}
strategy:
matrix:
package: [migrations, backend, frontend]
timeout-minutes: 10
steps:
- uses: bcgov-nr/[email protected]
id: builds
with:
keep_versions: 50
package: ${{ matrix.package }}
tag: ${{ github.event.number }}
tag_fallback: latest
triggers: ('${{ matrix.package }}/')
# https://github.com/bcgov-nr/action-deployer-openshift
deploys:
name: Deploys
needs: [builds]
uses: ./.github/workflows/.deploy.yml
secrets: inherit
with:
build_outputs: ${{ needs.builds.outputs.digest }}
tag: ${{ github.event.number }}
release: ${{ github.event.number }}
validate:
name: Validate
needs: [deploys]
if: always() && (!cancelled()) && (!failure())
env:
DOMAIN: apps.silver.devops.gov.bc.ca
PREFIX: ${{ github.event.repository.name }}
permissions:
pull-requests: write
runs-on: ubuntu-22.04
steps:
- uses: amannn/[email protected]
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- if: failure()
run: |
echo "Please use conventional commits in your PR title and re-run this job."
echo "https://www.conventionalcommits.org/en/v1.0.0/"
exit 1
- uses: bcgov-nr/[email protected]
env:
DOMAIN: apps.silver.devops.gov.bc.ca
PREFIX: ${{ github.event.repository.name }}
with:
add_markdown: |
---
Thanks for the PR!
Deployments, as required, will be available below:
- [Frontend](https://${{ env.PREFIX }}-${{ github.event.number }}-frontend.${{ env.DOMAIN }})
- [Backend](https://${{ env.PREFIX }}-${{ github.event.number }}-frontend.${{ env.DOMAIN }}/api)
Please create PRs in draft mode. Mark as ready to enable:
- [Analysis Workflow](https://github.com/${{ github.repository }}/actions/workflows/analysis.yml)
After merge, new images are deployed in:
- [Merge Workflow](https://github.com/${{ github.repository }}/actions/workflows/merge.yml)