From a0ba02c487419bccaab9c62128fb9b466f4f697e Mon Sep 17 00:00:00 2001 From: Andrew Pantuso Date: Tue, 8 Feb 2022 10:15:20 -0500 Subject: [PATCH] removing sandbox from build_tag.sh --- .goreleaser.yaml | 4 ++-- build_tag.sh | 10 ++++++---- 2 files changed, 8 insertions(+), 6 deletions(-) diff --git a/.goreleaser.yaml b/.goreleaser.yaml index 40b081e6..3e914465 100644 --- a/.goreleaser.yaml +++ b/.goreleaser.yaml @@ -1,8 +1,8 @@ project_name: ocm-addons before: hooks: - - ./mage check:tidy - - ./mage check:verify + - go mod tidy + - go mod verify builds: - env: - CGO_ENABLED=0 diff --git a/build_tag.sh b/build_tag.sh index 3bce60b8..66fb5c86 100755 --- a/build_tag.sh +++ b/build_tag.sh @@ -2,9 +2,11 @@ set -exvo pipefail -o nounset -docker login quay.io -u ${QUAY_USER} -p ${QUAY_TOKEN} +# utilize local go 1.17 version if available +GO_1_17="/opt/go/1.17.5/bin" -IMAGE=ocm-addons-ci +if [ -d "${GO_1_17}" ]; then + PATH="${GO_1_17}:${PATH}" +fi -docker build -t ${IMAGE} -f Dockerfile.ci . -docker run --rm -e "GITHUB_TOKEN=${GITHUB_TOKEN}" "${IMAGE}" release:full +echo "$(curl -sL https://git.io/goreleaser) --rm-dist" | bash