-
Notifications
You must be signed in to change notification settings - Fork 714
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Squashed 'tools/' changes from ec369f58d..d6cc704a2
d6cc704a2 Fix comment 7139116ae Revert "Push comments to the left so they don't appear in scripts" e47e58f7b Push comments to the left so they don't appear in scripts 3945fcec8 Remove nonexistent env var GIT_TAG cd6299284 Merge pull request #156 from weaveworks/drop-quay af0eb5119 Merge pull request #157 from weaveworks/fix-image-tag-prefix-length 0b9aee4f2 Fix image-tag object name prefix length to 8 chars. 813c28fe7 Move from CircleCI 1.0 to 2.0 425cf4ef1 Move from quay.io to Dockerhub 87ccf4fd1 Merge pull request #155 from weaveworks/go-1-12 c31bc2865 Update lint script to work with Go 1.12 ed8e380d7 Update to Go 1.12.1 git-subtree-dir: tools git-subtree-split: d6cc704a2892e8d85aa8fa4d201c1a404f02dfa4
- Loading branch information
Showing
6 changed files
with
68 additions
and
57 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
version: 2 | ||
jobs: | ||
build: | ||
# Use 'machine' type so we can run the lint step with directory mounted | ||
machine: | ||
docker_layer_caching: true | ||
working_directory: /home/circleci/src/github.com/weaveworks/build-tools | ||
environment: | ||
GOPATH: /home/circleci/ | ||
steps: | ||
- checkout | ||
- run: cd build; make | ||
- run: docker run --rm -v "$PWD:$PWD" -w "$PWD" --entrypoint sh weaveworks/build-golang -c ./lint . | ||
- run: cd cover; make | ||
# Socks makefile needs to overwrite Go std library | ||
- run: sudo chmod a+wr --recursive /usr/local/go/pkg | ||
- run: cd socks; make | ||
- run: cd runner; make | ||
|
||
- deploy: | ||
command: | | ||
if [ "${CIRCLE_BRANCH}" == "master" ]; then | ||
cd build | ||
docker login -u $DOCKER_REGISTRY_USER -p $DOCKER_REGISTRY_PASSWORD | ||
for image in $(make images); do | ||
# Push all tags - latest and git-tag | ||
docker push "${image}" | ||
# Tag the built images with something derived from the base images in | ||
# their respective Dockerfiles. So "FROM golang:1.8.0-stretch" as a | ||
# base image would lead to a tag of "1.8.0-stretch" | ||
IMG_TAG=$(make "imagetag-${image#weaveworks/build-}") | ||
docker tag "${image}:latest" "${image}:${IMG_TAG}" | ||
docker push "${image}:${IMG_TAG}" | ||
done | ||
fi |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
FROM golang:1.11.1-stretch | ||
FROM golang:1.12.1-stretch | ||
RUN apt-get update && \ | ||
apt-get install -y \ | ||
curl \ | ||
|
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters