File tree Expand file tree Collapse file tree 2 files changed +30
-2
lines changed Expand file tree Collapse file tree 2 files changed +30
-2
lines changed Original file line number Diff line number Diff line change 1
1
name : Test the contributed recipes
2
2
3
+ env :
4
+ REGISTRY : quay.io
5
+ OWNER : ${{ github.repository_owner }}
6
+
3
7
on :
4
8
schedule :
5
9
# Images are rebuilt at 03:00 on Monday UTC
61
65
variant : default
62
66
63
67
# Not pulling the image, because it might be loaded from previous step or will be downloaded automatically
64
- - name : Build recipe 🛠
65
- run : docker build --rm --force-rm --tag my-custom-image -f ./${{ matrix.dockerfile }} ./
68
+ - name : Build recipe with parent image 🛠
69
+ if : ${{ matrix.parent-image != '' }}
70
+ run : |
71
+ docker build \
72
+ --rm --force-rm \
73
+ --tag my-custom-image \
74
+ -f ./${{ matrix.dockerfile }} \
75
+ --build-arg BASE_IMAGE=${{ env.REGISTRY }}/${{ env.OWNER }}/${{ matrix.parent-image }} \
76
+ ./
77
+ env :
78
+ DOCKER_BUILDKIT : 1
79
+ # Full logs for CI build
80
+ BUILDKIT_PROGRESS : plain
81
+ working-directory : docs/using/recipe_code
82
+ shell : bash
83
+
84
+ # Not pulling the image, because it might be loaded from previous step or will be downloaded automatically
85
+ - name : Build recipe without parent image 🛠
86
+ if : ${{ matrix.parent-image == '' }}
87
+ run : |
88
+ docker build \
89
+ --rm --force-rm \
90
+ --tag my-custom-image \
91
+ -f ./${{ matrix.dockerfile }} \
92
+ ./
66
93
env :
67
94
DOCKER_BUILDKIT : 1
68
95
# Full logs for CI build
Original file line number Diff line number Diff line change @@ -20,6 +20,7 @@ Our repository provides several customization points:
20
20
- ` REGISTRY ` , ` OWNER ` , ` BASE_IMAGE ` (docker arguments) - they allow to specify parent image for all the other images
21
21
- ` REGISTRY ` , ` OWNER ` (part of ` env ` in some GitHub workflows) - these allow to properly tag and refer to images during following steps:
22
22
- [ ` build-test-upload ` ] ( https://github.com/jupyter/docker-stacks/blob/main/.github/workflows/docker-build-test-upload.yml )
23
+ - [ ` contributed-recipes ` ] ( https://github.com/jupyter/docker-stacks/blob/main/.github/workflows/contributed-recipes.yml )
23
24
- [ ` tag-push ` ] ( https://github.com/jupyter/docker-stacks/blob/main/.github/workflows/docker-tag-push.yml )
24
25
25
26
These customization points can't be changed during runtime.
You can’t perform that action at this time.
0 commit comments