Skip to content

Commit a61201f

Browse files
committed
feat: use current image name for backward compat
Signed-off-by: Sergei Lukianov <[email protected]>
1 parent f2ba4b7 commit a61201f

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

justfile

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -37,18 +37,19 @@ gen:
3737

3838
oci_repo := "127.0.0.1:30000"
3939
oci_prefix := "githedgehog/toolbox"
40+
oci_fabricator_prefix := "githedgehog/fabricator"
4041

4142
# Build all artifacts
4243
build: _license_headers gen _gotools && version
4344
{{go_linux_build}} -o ./bin/version ./cmd/version
4445
{{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 .
4647

4748
# Push all toolbox image
4849
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
5253

5354
# Run specified command with args with minimal Go flags (no version provided)
5455
run cmd *args:

0 commit comments

Comments
 (0)