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 94d073c commit d227bb6
Showing 1 changed file with 11 additions and 9 deletions.
20 changes: 11 additions & 9 deletions stacker.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -30,24 +30,26 @@ 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}}":
from:
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:}}
Expand Down

0 comments on commit d227bb6

Please sign in to comment.