File tree Expand file tree Collapse file tree 2 files changed +20
-3
lines changed Expand file tree Collapse file tree 2 files changed +20
-3
lines changed Original file line number Diff line number Diff line change @@ -10,7 +10,7 @@ inputs:
10
10
required : true
11
11
image-tools-version :
12
12
description : The Stackable image-tools version
13
- default : 0.0.8
13
+ default : 0.0.10
14
14
outputs :
15
15
image-name :
16
16
description : This is the full image name before the tag (left of ':')
40
40
shell : bash
41
41
run : pip install image-tools-stackabletech==${{ inputs.image-tools-version }}
42
42
43
+ # Needed if you pass the --cache argument to the bake command below
44
+ - name : Login to the docker build cache registry
45
+ uses : docker/login-action@0d4c9c5ea7693da7b068278f7b52bda2a190a446 # v3.2.0
46
+ with :
47
+ registry : build-repo.stackable.tech:8083
48
+ username : github
49
+ password : ${{ secrets.BUILD_CACHE_NEXUS_PASSWORD }}
50
+
43
51
- name : Build image using bake
44
52
shell : bash
45
53
run : |
49
57
--product ${{ inputs.product-name }}=${{ inputs.product-version }} \
50
58
--image-version "0.0.0-dev-${ARCH}" \
51
59
--architecture "linux/${ARCH}" \
52
- --export-tags-file bake-target-tags
60
+ --export-tags-file bake-target-tags \
61
+ --cache
53
62
54
63
- name : Setup Environment Variables
55
64
id : image_info
Original file line number Diff line number Diff line change 76
76
"zookeeper" : {"id" : "62552b0aadd9d54d56cda11d" },
77
77
}
78
78
79
- cache : list [str ] = []
79
+ cache = [
80
+ {
81
+ "type" : "registry" ,
82
+ "ref_prefix" : "build-repo.stackable.tech:8083/sandbox/cache" ,
83
+ "mode" : "max" ,
84
+ "compression" : "zstd" ,
85
+ "ignore-error" : "true" ,
86
+ },
87
+ ]
You can’t perform that action at this time.
0 commit comments