Update OSS semaphore jobs that depend on glide
@@ -149,10 +149,13 @@ build: bin/calicoctl-$(OS)-$(ARCH)
EXTRA_DOCKER_ARGS += -e GO111MODULE=on
ifdef GOPATH
+ifneq ($(GOPATH),)
ifndef CIRCLECI
+ LOCAL_GOPATH = $(shell echo $(GOPATH) | cut -d':' -f1)
EXTRA_DOCKER_ARGS += -v $(LOCAL_GOPATH)/pkg/mod:/go/pkg/mod:rw
endif
endif
+endif
DOCKER_RUN := mkdir -p .go-pkg-cache && \
docker run --rm \
@@ -184,6 +187,17 @@ update-libcalico:
fi;\
fi'
+git-status:
+ git status --porcelain
+
+git-commit:
+ git commit -m "Semaphore Automatic Update" --author "Semaphore Automatic Update <marvin@tigera.io>" go.mod go.sum
+
+git-push:
+ git push
+
+commit-pin-updates: update-libcalico git-status ci git-commit git-push
+
# The supported different binary names. For each, ensure that an OS and ARCH is set
bin/calicoctl-%-amd64: ARCH=amd64
bin/calicoctl-%-arm64: ARCH=arm64
