Skip to content

Commit

Permalink
Merge pull request #2 from Ajpantuso/remove_build-tag_sandbox
Browse files Browse the repository at this point in the history
Modifying build_tag.sh script to utilize local go installation
  • Loading branch information
Ajpantuso authored Feb 8, 2022
2 parents dc00339 + a0ba02c commit 1b14e76
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 6 deletions.
4 changes: 2 additions & 2 deletions .goreleaser.yaml
Original file line number Diff line number Diff line change
@@ -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
Expand Down
10 changes: 6 additions & 4 deletions build_tag.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit 1b14e76

Please sign in to comment.