From d227bb6893d0bb595994ee94792ca0c318b72190 Mon Sep 17 00:00:00 2001 From: Petu Eusebiu Date: Fri, 11 Nov 2022 00:34:49 +0200 Subject: [PATCH] fix(ci): fix releasing zot minimal image closes #988 Signed-off-by: Petu Eusebiu --- stacker.yaml | 20 +++++++++++--------- 1 file changed, 11 insertions(+), 9 deletions(-) diff --git a/stacker.yaml b/stacker.yaml index 566b9782d..5b229f77e 100644 --- a/stacker.yaml +++ b/stacker.yaml @@ -30,12 +30,14 @@ build: EOF cat config.json - mkdir -p /zotcopy/build/binary - mkdir -p /zotcopy/build/cert - mkdir -p /zotcopy/build/config - cp /go/src/github.com/project-zot/zot/bin/zot-${{OS}}-${{ARCH}}${{EXT:}} /zotcopy/build/binary - cp /go/src/github.com/project-zot/zot/config.json /zotcopy/build/config - cp /etc/ssl/certs/ca-certificates.crt /zotcopy/build/cert + mkdir -p /zotcopy/build${{EXT:}}/ + cd /zotcopy/build${{EXT:}}/ + + mkdir -p binary/ cert/ config/ + + cp /go/src/github.com/project-zot/zot/bin/zot-${{OS}}-${{ARCH}}${{EXT:}} binary/ + cp /go/src/github.com/project-zot/zot/config.json config/ + cp /etc/ssl/certs/ca-certificates.crt cert/ build_only: true "${{REPO_NAME:zot}}": @@ -43,11 +45,11 @@ build: type: docker url: docker://gcr.io/distroless/base overlay_dirs: - - source: ./build/binary + - source: ./build${{EXT:}}/binary dest: /usr/local/bin - - source: ./build/cert + - source: ./build${{EXT:}}/cert dest: /etc/ssl/certs - - source: ./build/config + - source: ./build${{EXT:}}/config dest: /etc/zot entrypoint: - /usr/local/bin/zot-${{OS}}-${{ARCH}}${{EXT:}}