fix: binary-stacker Makefile target is broken (#1689)
Signed-off-by: Alexei Dodon <adodon@cisco.com>
This commit is contained in:
parent
04627534a9
commit
59922af528
11
Makefile
11
Makefile
@ -321,13 +321,14 @@ run-container:
|
||||
zot-build:latest
|
||||
|
||||
.PHONY: binary-stacker
|
||||
binary-stacker:
|
||||
binary-stacker: $(STACKER)
|
||||
${STACKER} --debug build \
|
||||
-f build/stacker.yaml \
|
||||
--substitute PWD=$$PWD \
|
||||
--substitute COMMIT=$$COMMIT \
|
||||
--substitute ARCH=$$ARCH \
|
||||
--substitute OS=$$OS
|
||||
--substitute COMMIT=$(COMMIT) \
|
||||
--substitute ARCH=$(ARCH) \
|
||||
--substitute OS=$(OS) \
|
||||
--substitute RELEASE_TAG=$(RELEASE_TAG) \
|
||||
--substitute REPO_NAME=zot-$(OS)-$(ARCH)
|
||||
|
||||
.PHONY: image
|
||||
image:
|
||||
|
@ -13,7 +13,7 @@ build:
|
||||
cd /go/src/github.com/project-zot
|
||||
git clone /zotcopy zot
|
||||
cd /go/src/github.com/project-zot/zot
|
||||
make COMMIT=${{COMMIT}} OS=${{OS}} ARCH=${{ARCH}} RELEASE_TAG=${{RELEASE_TAG}} clean binary${{EXT:}}
|
||||
make COMMIT=${{COMMIT}} OS=${{OS}} ARCH=${{ARCH}} RELEASE_TAG=${{RELEASE_TAG}} clean binary
|
||||
cat > config.json << EOF
|
||||
{
|
||||
"storage":{
|
||||
@ -49,7 +49,7 @@ build:
|
||||
|
||||
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/bin/zot-${{OS}}-${{ARCH}} binary/
|
||||
cp /go/src/github.com/project-zot/zot/config.json config/
|
||||
cp /etc/ssl/certs/ca-certificates.crt cert/
|
||||
build_only: true
|
||||
@ -68,7 +68,7 @@ build:
|
||||
- source: ../.build/${{REPO_NAME}}/config
|
||||
dest: /etc/zot
|
||||
entrypoint:
|
||||
- /usr/local/bin/zot-${{OS}}-${{ARCH}}${{EXT:}}
|
||||
- /usr/local/bin/zot-${{OS}}-${{ARCH}}
|
||||
volumes:
|
||||
- /var/lib/registry
|
||||
cmd:
|
||||
|
Loading…
Reference in New Issue
Block a user