Skip to content

Commit

Permalink
fix(ci): fix releasing zot minimal image
Browse files Browse the repository at this point in the history
closes project-zot#988

Signed-off-by: Petu Eusebiu <[email protected]>
  • Loading branch information
eusebiu-constantin-petu-dbk committed Nov 10, 2022
1 parent 5eeba93 commit 8b7cba3
Show file tree
Hide file tree
Showing 4 changed files with 29 additions and 27 deletions.
18 changes: 9 additions & 9 deletions build/stacker-conformance.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -33,12 +33,12 @@ build:
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-linux-amd64 /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/${{REPO_NAME}}/binary
mkdir -p /zotcopy/.build/${{REPO_NAME}}/cert
mkdir -p /zotcopy/.build/${{REPO_NAME}}/config
cp /go/src/github.com/project-zot/zot/bin/zot-linux-amd64 /zotcopy/.build/${{REPO_NAME}}/binary
cp /go/src/github.com/project-zot/zot/config.json /zotcopy/.build/${{REPO_NAME}}/config
cp /etc/ssl/certs/ca-certificates.crt /zotcopy/.build/${{REPO_NAME}}/cert
build_only: true

"${{REPO_NAME:zot}}":
Expand All @@ -48,11 +48,11 @@ build:
type: docker
url: docker://gcr.io/distroless/base:latest-${{ARCH}}
overlay_dirs:
- source: ./build/binary
- source: ./.build/${{REPO_NAME}}/binary
dest: /usr/local/bin
- source: ./build/cert
- source: ./.build/${{REPO_NAME}}/cert
dest: /etc/ssl/certs
- source: ./build/config
- source: ./.build/${{REPO_NAME}}/config
dest: /etc/zot
entrypoint:
- /usr/bin/zot-linux-amd64
Expand Down
6 changes: 3 additions & 3 deletions build/stacker-zb.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,8 @@ build:
cd /go/src/github.com/project-zot/zot
make COMMIT=${{COMMIT}} OS=${{OS}} ARCH=${{ARCH}} clean bench
mkdir -p /zotcopy/build/binary
cp /go/src/github.com/project-zot/zot/bin/zb-${{OS}}-${{ARCH}} /zotcopy/build/binary
mkdir -p /zotcopy/.build/${{REPO_NAME}}/binary
cp /go/src/github.com/project-zot/zot/bin/zb-${{OS}}-${{ARCH}} /zotcopy/.build/${{REPO_NAME}}/binary
build_only: true

"${{REPO_NAME:zb}}":
Expand All @@ -26,7 +26,7 @@ build:
type: docker
url: docker://gcr.io/distroless/base:latest-${{ARCH}}
overlay_dirs:
- source: ./build/binary
- source: ./.build/${{REPO_NAME}}/binary
dest: /usr/local/bin
entrypoint:
- /usr/local/bin/zb-${{OS}}-${{ARCH}}
12 changes: 6 additions & 6 deletions build/stacker-zxp.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -33,10 +33,10 @@ build:
cat config.json
mkdir -p /zotcopy/build/binary
mkdir -p /zotcopy/build/config
cp /go/src/github.com/project-zot/zot/bin/zxp-${{OS}}-${{ARCH}} /zotcopy/build/binary
cp /go/src/github.com/project-zot/zot/config.json /zotcopy/build/config
mkdir -p /zotcopy/.build/${{REPO_NAME}}/binary
mkdir -p /zotcopy/.build/${{REPO_NAME}}/config
cp /go/src/github.com/project-zot/zot/bin/zxp-${{OS}}-${{ARCH}} /zotcopy/.build/${{REPO_NAME}}/binary
cp /go/src/github.com/project-zot/zot/config.json /zotcopy/.build/${{REPO_NAME}}/config
build_only: true

"${{REPO_NAME:zxp}}":
Expand All @@ -46,9 +46,9 @@ build:
type: docker
url: docker://gcr.io/distroless/base:latest-${{ARCH}}
overlay_dirs:
- source: ./build/binary
- source: ./.build/${{REPO_NAME}}/binary
dest: /usr/local/bin
- source: ./build/config
- source: ./.build/${{REPO_NAME}}/config
dest: /etc/zxp
entrypoint:
- /usr/local/bin/zxp-${{OS}}-${{ARCH}}
Expand Down
20 changes: 11 additions & 9 deletions build/stacker.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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/${{REPO_NAME}}
cd /zotcopy/.build/${{REPO_NAME}}
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}}":
Expand All @@ -45,11 +47,11 @@ build:
type: docker
url: docker://gcr.io/distroless/base:latest-${{ARCH}}
overlay_dirs:
- source: ./build/binary
- source: ./.build/${{REPO_NAME}}/binary
dest: /usr/local/bin
- source: ./build/cert
- source: ./.build/${{REPO_NAME}}/cert
dest: /etc/ssl/certs
- source: ./build/config
- source: ./.build/${{REPO_NAME}}/config
dest: /etc/zot
entrypoint:
- /usr/local/bin/zot-${{OS}}-${{ARCH}}${{EXT:}}
Expand Down

0 comments on commit 8b7cba3

Please sign in to comment.