File tree Expand file tree Collapse file tree 1 file changed +5
-4
lines changed Expand file tree Collapse file tree 1 file changed +5
-4
lines changed Original file line number Diff line number Diff line change 37
37
38
38
oci_repo := " 127.0.0.1:30000"
39
39
oci_prefix := " githedgehog/toolbox"
40
+ oci_fabricator_prefix := " githedgehog/fabricator"
40
41
41
42
# Build all artifacts
42
43
build : _license_headers gen _gotools && version
43
44
{{ go_linux_build}} -o ./ bin/ version ./ cmd/ version
44
45
{{ go_linux_build}} -o ./ bin/ echo ./ cmd/ echo
45
- docker build --platform=linux/ amd64 -t {{ oci_repo}} / {{ oci_prefix}} / toolbox :{{ version}} -f Dockerfile .
46
+ docker build --platform=linux/ amd64 -t {{ oci_repo}} / {{ oci_prefix}} :{{ version}} -f Dockerfile .
46
47
47
48
# Push all toolbox image
48
49
push : _skopeo _oras build && version
49
- {{ skopeo}} --insecure-policy copy {{ skopeo_copy_flags}} {{ skopeo_dest_insecure}} docker-daemon:{{ oci_repo}} / {{ oci_prefix}} / toolbox :{{ version}} docker:// {{ oci_repo}} / {{ oci_prefix}} / toolbox :{{ version}}
50
- docker save -o toolbox.tar {{ oci_repo}} / {{ oci_prefix}} / toolbox :{{ version}}
51
- oras push {{ oras_insecure}} {{ oci_repo}} / {{ oci_prefix }} / toolbox-airgap :{{ version}} toolbox.tar
50
+ {{ skopeo}} --insecure-policy copy {{ skopeo_copy_flags}} {{ skopeo_dest_insecure}} docker-daemon:{{ oci_repo}} / {{ oci_prefix}} :{{ version}} docker:// {{ oci_repo}} / {{ oci_prefix}} :{{ version}}
51
+ docker save -o toolbox.tar {{ oci_repo}} / {{ oci_prefix}} :{{ version}}
52
+ oras push {{ oras_insecure}} {{ oci_repo}} / {{ oci_fabricator_prefix }} / toolbox:{{ version}} toolbox.tar
52
53
53
54
# Run specified command with args with minimal Go flags (no version provided)
54
55
run cmd * args :
You can’t perform that action at this time.
0 commit comments