Skip to content

feat(stages)!: staged builds for images #47

feat(stages)!: staged builds for images

feat(stages)!: staged builds for images #47

Workflow file for this run

name: Build, test, and push Docker Images
on:
push:
branches:
- "master"
paths:
- ".github/workflows/docker.yml"
- "images/**"
- "!images/*/README.md"
- "tests/**"
- "!tests/README.md"
- "requirements-dev.txt"
pull_request:
paths:
- ".github/workflows/docker.yml"
- "images/**"
- "!images/*/README.md"
- "tests/**"
- "!tests/README.md"
- "requirements-dev.txt"
jobs:
vars:
runs-on: ubuntu-latest
outputs:
REGISTRY_NAME: "k8scc01covidacr"
DEV_REGISTRY_NAME: "k8scc01covidacrdev"
steps:
- name: Set up environment
run: echo "Environment has been set up."
base-cpu:
uses: ./.github/workflows/docker-build-test-upload.yaml
with:
parent-image: ""
image: "base-cpu"
base-image: "quay.io/jupyter/datascience-notebook:2024-06-17"
registry-name: "${{ needs.vars.outputs.DEV_REGISTRY_NAME }}"
secrets:
REGISTRY_USERNAME: ${{ secrets.DEV_REGISTRY_USERNAME }}
REGISTRY_PASSWORD: ${{ secrets.DEV_REGISTRY_PASSWORD }}
needs: [vars]
base-kubeflow:
uses: ./.github/workflows/docker-build-test-upload.yaml
with:
parent-image: "base-cpu"
image: "base-kubeflow"
registry-name: "${{ needs.vars.outputs.DEV_REGISTRY_NAME }}"
secrets:
REGISTRY_USERNAME: ${{ secrets.DEV_REGISTRY_USERNAME }}
REGISTRY_PASSWORD: ${{ secrets.DEV_REGISTRY_PASSWORD }}
needs: [vars, base-cpu]