File tree 3 files changed +99
-43
lines changed
3 files changed +99
-43
lines changed Original file line number Diff line number Diff line change @@ -9,6 +9,10 @@ name: Build & Publish Notebook Servers (TEMPLATE)
9
9
required : true
10
10
description : " make target to build"
11
11
type : string
12
+ event_name :
13
+ required : true
14
+ description : " top workflow's `github.event_name`"
15
+ type : string
12
16
13
17
jobs :
14
18
build :
@@ -54,10 +58,19 @@ jobs:
54
58
# podman bug? need to create this _after_ doing the reset
55
59
mkdir -p /mnt/containers/tmp
56
60
57
- - run : " make ${{ inputs.target }}"
61
+ - run : " push: make ${{ inputs.target }}"
62
+ if : ${{ inputs.event_name == 'push' }}
58
63
env :
64
+ IMAGE_TAG : " ${{ github.ref_name }}--${{ github.sha }}"
59
65
IMAGE_REGISTRY : " ghcr.io/${{ github.repository }}/workbench-images"
60
66
CACHE : " ghcr.io/${{ github.repository }}/workbench-images/build-cache"
61
67
68
+ - run : " pull_request: make ${{ inputs.target }}"
69
+ if : ${{ inputs.event_name == 'pull_request' }}
70
+ env :
71
+ IMAGE_TAG : " ${{ github.ref_name }}--${{ github.sha }}"
72
+ IMAGE_REGISTRY : " ghcr.io/${{ github.repository }}/workbench-images/pr"
73
+ CACHE : " ghcr.io/${{ github.repository }}/workbench-images/build-cache"
74
+
62
75
- run : df -h
63
76
if : " ${{ !cancelled() }}"
You can’t perform that action at this time.
0 commit comments