Skip to content

Commit

Permalink
Restore workflows
Browse files Browse the repository at this point in the history
  • Loading branch information
DerekRoberts committed Feb 14, 2024
1 parent c1ddfe6 commit 5803140
Showing 1 changed file with 65 additions and 76 deletions.
141 changes: 65 additions & 76 deletions .github/workflows/pr-open.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,87 +9,76 @@ concurrency:
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-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 }}
# 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 }}

test:
name: Test
# needs: [deploys]
uses: bcgov/quickstart-openshift-helpers/test.yml@main
# secrets:
# oc_namespace: ${{ vars.OC_NAMESPACE }}
# oc_token: ${{ secrets.OC_TOKEN }}
# with:
# cleanup: helm
# packages: backend frontend migrations
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 }}

# 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
# - 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: |
---
# - 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!
# 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)
# 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)
# 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)
After merge, new images are deployed in:
- [Merge Workflow](https://github.com/${{ github.repository }}/actions/workflows/merge.yml)

0 comments on commit 5803140

Please sign in to comment.