summaryrefslogtreecommitdiff
path: root/contrib/cirrus/packer/Makefile
diff options
context:
space:
mode:
authorChris Evich <cevich@redhat.com>2020-07-02 11:55:38 -0400
committerChris Evich <cevich@redhat.com>2020-07-22 11:51:32 -0400
commit18a1514139f3028130a58e64f358ae4dfde9ec6c (patch)
treeff673fbc936411ab6751933cf312185fd7b644e0 /contrib/cirrus/packer/Makefile
parent80add2902cf3561d2c9f91dc045076519cd297d5 (diff)
downloadpodman-18a1514139f3028130a58e64f358ae4dfde9ec6c.tar.gz
podman-18a1514139f3028130a58e64f358ae4dfde9ec6c.tar.bz2
podman-18a1514139f3028130a58e64f358ae4dfde9ec6c.zip
Cirrus: Ensure GOPATH is properly set during image-builds
Signed-off-by: Chris Evich <cevich@redhat.com>
Diffstat (limited to 'contrib/cirrus/packer/Makefile')
-rw-r--r--contrib/cirrus/packer/Makefile4
1 files changed, 3 insertions, 1 deletions
diff --git a/contrib/cirrus/packer/Makefile b/contrib/cirrus/packer/Makefile
index a911cafdb..c5a8e4cac 100644
--- a/contrib/cirrus/packer/Makefile
+++ b/contrib/cirrus/packer/Makefile
@@ -5,7 +5,8 @@ PACKER_DIST_FILENAME := packer_${PACKER_VER}_linux_${GOARCH}.zip
# Only needed for libpod_base_images target
TIMESTAMP := $(shell date +%s)
-GOSRC ?= $(shell realpath "./../../../")
+GOPATH ?= /var/tmp/go
+GOSRC ?= $(GOPATH)/src/github.com/containers/libpod
PACKER_BASE ?= contrib/cirrus/packer
SCRIPT_BASE ?= contrib/cirrus
POST_MERGE_BUCKET_SUFFIX ?=
@@ -54,6 +55,7 @@ libpod_images: guard-PACKER_BUILDS libpod_images.json packer
./packer build \
-force \
$(shell test -z "${PACKER_BUILDS}" || echo "-only=${PACKER_BUILDS}") \
+ -var GOPATH=$(GOPATH) \
-var GOSRC=$(GOSRC) \
-var PACKER_BASE=$(PACKER_BASE) \
-var SCRIPT_BASE=$(SCRIPT_BASE) \