Skip to content

ci(jupyterhub-keycloak): Add workflow for image build #1

ci(jupyterhub-keycloak): Add workflow for image build

ci(jupyterhub-keycloak): Add workflow for image build #1

---
name: Build and publish Spark for jupyterhub-keycloak demo
on:
pull_request:
workflow_dispatch:
push:
branches:
- main
# TODO (@NickLarsenNZ): Also build on release branches, but with a stackable0.0.0-dev or stackableYY.M.X tag.
# The current problem is that we don't know the patch level, so do we always build for `.0`, or just drop that
# (eg: stackableYY.M), but then do we do the same for main (eg: 0.0-dev)?
# - release-*
paths:
- demos/jupyterhub-keycloak/Dockerfile
- .github/workflows/dev_jupyterhub-keycloak-spark.yaml
jobs:
build_image:
name: Reusable Workflow
uses: ./.github/workflows/reusable_build_image.yaml
secrets:
harbor-robot-secret: ${{ secrets.HARBOR_ROBOT_DEMOS_GITHUB_ACTION_BUILD_SECRET }}
slack-token: ${{ secrets.SLACK_CONTAINER_IMAGE_TOKEN }}
with:
image-name: spark
# TODO (@NickLarsenNZ): Use a versioned image with stackable0.0.0-dev or stackableXX.X.X so that
# the demo is reproducable for the release and it will be automatically replaced for the release branch.
image-version: 3.5.5-python311
containerfile-path: demos/jupyterhub-keycloak/Dockerfile