Skip to content

Roll out new CI/CD structure, update existing containers #20

Roll out new CI/CD structure, update existing containers

Roll out new CI/CD structure, update existing containers #20

---
# yaml-language-server: $schema=https://json.schemastore.org/github-workflow.json
name: Release on Merge
concurrency:
group: container-release
cancel-in-progress: false
on:
push:
branches: ["main"]
paths:
- "apps/**"
- "scripts/templates/**"
- "!apps/**/metadata.yaml"
- "!apps/**/README.md"
jobs:
simple-checks:
uses: RareCompute/containers/.github/workflows/simple-checks.yaml@main
get-changed-images:
needs: ["simple-checks"]
uses: RareCompute/containers/.github/workflows/get-changed-images.yaml@main
build-images:
needs: ["simple-checks", "get-changed-images"]
if: ${{ needs.get-changed-images.outputs.addedOrModified == 'true' }}
uses: RareCompute/containers/.github/workflows/build-images.yaml@main
secrets: inherit
with:
appsToBuild: "${{ needs.get-changed-images.outputs.addedOrModifiedImages }}"
pushImages: true
sendNotifications: true
render-readme:
name: Render Readme
needs: build-images
if: ${{ always() && needs.build-images.result != 'failure' }}
uses: ./.github/workflows/render-readme.yaml
secrets: inherit