|
1 | 1 | ---
|
2 | 2 | name: Build and publish jupyter-pyspark-with-alibi-detect
|
3 | 3 |
|
4 |
| -env: |
5 |
| - IMAGE_NAME: jupyter-pyspark-with-alibi-detect |
6 |
| - # TODO (@NickLarsenNZ): Use a versioned image with stackable0.0.0-dev or stackableXX.X.X so that |
7 |
| - # the demo is reproducable for the release and it will be automatically replaced for the release branch. |
8 |
| - IMAGE_VERSION: python-3.9 |
9 |
| - REGISTRY_PATH: stackable |
10 |
| - DOCKERFILE_PATH: "demos/signal-processing/Dockerfile-jupyter" |
11 |
| - |
12 | 4 | on:
|
13 | 5 | workflow_dispatch:
|
14 | 6 | push:
|
|
22 | 14 | - .github/workflows/dev_jupyter-pyspark-with-alibi-detect.yaml
|
23 | 15 |
|
24 | 16 | jobs:
|
25 |
| - build: |
26 |
| - name: Build/Publish ${{ matrix.runner.arch }} Image |
27 |
| - permissions: |
28 |
| - id-token: write |
29 |
| - runs-on: ${{ matrix.runner.name }} |
30 |
| - strategy: |
31 |
| - matrix: |
32 |
| - runner: |
33 |
| - - {name: "ubuntu-latest", arch: "amd64"} |
34 |
| - - {name: "ubicloud-standard-8-arm", arch: "arm64"} |
35 |
| - steps: |
36 |
| - - name: Checkout Repository |
37 |
| - uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7 |
38 |
| - |
39 |
| - - name: Build image |
40 |
| - id: build |
41 |
| - uses: stackabletech/actions/build-container-image@013e6482fbc0edf2d38cf9220fc931f6a81336fb # v0.0.6 |
42 |
| - with: |
43 |
| - image-name: ${{ env.IMAGE_NAME }} |
44 |
| - image-index-manifest-tag: ${{ env.IMAGE_VERSION }} |
45 |
| - container-file: ${{ env.DOCKERFILE_PATH }} |
46 |
| - |
47 |
| - - name: Publish Container Image on oci.stackable.tech |
48 |
| - uses: stackabletech/actions/publish-image@013e6482fbc0edf2d38cf9220fc931f6a81336fb # v0.0.6 |
49 |
| - with: |
50 |
| - image-registry-uri: oci.stackable.tech |
51 |
| - image-registry-username: robot$stackable+github-action-build |
52 |
| - image-registry-password: ${{ secrets.HARBOR_ROBOT_STACKABLE_GITHUB_ACTION_BUILD_SECRET }} |
53 |
| - image-repository: ${{ env.REGISTRY_PATH }}/${{ env.IMAGE_NAME }} |
54 |
| - image-manifest-tag: ${{ steps.build.outputs.image-manifest-tag }} |
55 |
| - source-image-uri: ${{ steps.build.outputs.image-manifest-uri }} |
56 |
| - |
57 |
| - publish_manifests: |
58 |
| - name: Build/Publish Manifest |
59 |
| - needs: [build] |
60 |
| - permissions: |
61 |
| - id-token: write |
62 |
| - runs-on: ubuntu-latest |
63 |
| - steps: |
64 |
| - - name: Checkout Repository |
65 |
| - uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7 |
66 |
| - |
67 |
| - - name: Publish and Sign Image Index Manifest to oci.stackable.tech |
68 |
| - uses: stackabletech/actions/publish-index-manifest@013e6482fbc0edf2d38cf9220fc931f6a81336fb # v0.0.6 |
69 |
| - with: |
70 |
| - image-registry-uri: oci.stackable.tech |
71 |
| - image-registry-username: robot$stackable+github-action-build |
72 |
| - image-registry-password: ${{ secrets.HARBOR_ROBOT_STACKABLE_GITHUB_ACTION_BUILD_SECRET }} |
73 |
| - image-repository: ${{ env.REGISTRY_PATH }}/${{ env.IMAGE_NAME }} |
74 |
| - image-index-manifest-tag: ${{ env.IMAGE_VERSION }} |
| 17 | + build_image: |
| 18 | + name: Reusable Workflow |
| 19 | + uses: ./.github/workflows/reusable_build_image.yaml |
| 20 | + secrets: |
| 21 | + harbor-robot-secret: ${{ secrets.HARBOR_ROBOT_DEMOS_GITHUB_ACTION_BUILD_SECRET }} |
| 22 | + with: |
| 23 | + image-name: jupyter-pyspark-with-alibi-detect |
| 24 | + # TODO (@NickLarsenNZ): Use a versioned image with stackable0.0.0-dev or stackableXX.X.X so that |
| 25 | + # the demo is reproducable for the release and it will be automatically replaced for the release branch. |
| 26 | + image-version: python-3.9 |
| 27 | + containerfile-path: demos/signal-processing/Dockerfile-jupyter |
0 commit comments