2017-07-12 03:35:22 +00:00
|
|
|
version: 2
|
|
|
|
jobs:
|
|
|
|
build:
|
|
|
|
working_directory: ~/build
|
|
|
|
docker:
|
|
|
|
- image: circleci/golang:latest
|
|
|
|
steps:
|
|
|
|
- checkout
|
|
|
|
- setup_remote_docker:
|
2020-10-25 16:55:44 +00:00
|
|
|
version: 19.03.13
|
2017-07-12 03:35:22 +00:00
|
|
|
- run: make image
|
2017-07-12 03:36:59 +00:00
|
|
|
- deploy:
|
|
|
|
command: |
|
|
|
|
if [[ "$CIRCLE_BRANCH" == "master" ]]; then
|
|
|
|
docker tag ctop quay.io/vektorlab/ctop:latest
|
|
|
|
docker tag ctop quay.io/vektorlab/ctop:$(cat VERSION)
|
2017-08-19 05:33:56 +00:00
|
|
|
docker login -u $DOCKER_USER -p $DOCKER_PASS quay.io
|
2017-07-12 03:36:59 +00:00
|
|
|
docker push quay.io/vektorlab/ctop
|
|
|
|
fi
|