mirror of
https://github.com/project-zot/zot.git
synced 2026-06-15 20:07:55 +08:00
build: fix stacker build
This commit is contained in:
@@ -5,6 +5,7 @@ COMMIT=$(if $(shell git status --porcelain --untracked-files=no),$(COMMIT_HASH)-
|
|||||||
CONTAINER_RUNTIME := $(shell command -v podman 2> /dev/null || echo docker)
|
CONTAINER_RUNTIME := $(shell command -v podman 2> /dev/null || echo docker)
|
||||||
PATH := bin:$(PATH)
|
PATH := bin:$(PATH)
|
||||||
TMPDIR := $(shell mktemp -d)
|
TMPDIR := $(shell mktemp -d)
|
||||||
|
STACKER := $(shell which stacker)
|
||||||
|
|
||||||
.PHONY: all
|
.PHONY: all
|
||||||
all: doc binary binary-minimal debug test check
|
all: doc binary binary-minimal debug test check
|
||||||
@@ -61,7 +62,7 @@ run-container:
|
|||||||
|
|
||||||
.PHONY: binary-stacker
|
.PHONY: binary-stacker
|
||||||
binary-stacker:
|
binary-stacker:
|
||||||
stacker --roots-dir ${TMPDIR} build --substitute PWD=$$PWD
|
sudo ${STACKER} build --substitute PWD=$$PWD
|
||||||
|
|
||||||
.PHONY: image
|
.PHONY: image
|
||||||
image:
|
image:
|
||||||
|
|||||||
+6
-5
@@ -1,19 +1,20 @@
|
|||||||
build:
|
build:
|
||||||
from:
|
from:
|
||||||
type: docker
|
type: docker
|
||||||
url: docker://golang:1.14.4
|
url: docker://golang:1.15.3
|
||||||
binds:
|
binds:
|
||||||
- ${{PWD}} -> /go/src/github.com/anuvu/zot
|
- ${{PWD}} -> /zotcopy
|
||||||
run: |
|
run: |
|
||||||
export GO111MODULE=on
|
export GO111MODULE=on
|
||||||
export GOPATH='/go'
|
export GOPATH='/go'
|
||||||
export HOME='/root'
|
export HOME='/root'
|
||||||
export PATH='/go/bin:/usr/local/go/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin'
|
export PATH='/go/bin:/usr/local/go/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin'
|
||||||
go get -u github.com/swaggo/swag/cmd/swag
|
go get -u github.com/swaggo/swag/cmd/swag
|
||||||
|
mkdir -p /go/src/github.com/anuvu
|
||||||
|
cd /go/src/github.com/anuvu
|
||||||
|
git clone /zotcopy zot
|
||||||
cd /go/src/github.com/anuvu/zot
|
cd /go/src/github.com/anuvu/zot
|
||||||
go get -u -v -d ./...
|
make binary
|
||||||
curl -sfL https://install.goreleaser.com/github.com/golangci/golangci-lint.sh | sh -s v1.26.0
|
|
||||||
make
|
|
||||||
build_only: true
|
build_only: true
|
||||||
|
|
||||||
zot:
|
zot:
|
||||||
|
|||||||
Reference in New Issue
Block a user