Skip to content

Commit

Permalink
ci: integrate docker build/push into circleci
Browse files Browse the repository at this point in the history
  • Loading branch information
gszr committed Sep 16, 2019
1 parent 244f4cb commit 11fb466
Showing 1 changed file with 15 additions and 1 deletion.
16 changes: 15 additions & 1 deletion .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -333,15 +333,29 @@ jobs:
<<: *go-defaults
steps:
- checkout
- setup_remote_docker
- restore_cache:
keys:
- go.mod/{{ checksum "go.sum" }}
- run:
name: Build packages
name: "Install Docker client"
command: |
VER="17.03.0-ce"
curl -L -o /tmp/docker-$VER.tgz https://download.docker.com/linux/static/stable/x86_64/docker-$VER.tgz
tar -xz -C /tmp -f /tmp/docker-$VER.tgz
mv /tmp/docker/docker /usr/bin
- run:
name: Build Packages
command: ./tools/releases/distros.sh --package --version $CIRCLE_TAG --sha $CIRCLE_SHA1
- run:
name: Push Packages
command: ./tools/releases/distros.sh --release --version $CIRCLE_TAG
- run:
name: Build Docker
command: ./tools/releases/docker.sh --build --version $CIRCLE_TAG
- run:
name: Push Docker
command: ./tools/releases/docker.sh --push --version $CIRCLE_TAG

#
# Below, the tag filter needs to be in all jobs
Expand Down

0 comments on commit 11fb466

Please sign in to comment.