mirror of
https://github.com/bcicen/ctop.git
synced 2024-08-30 18:23:19 +00:00
25 lines
553 B
YAML
25 lines
553 B
YAML
machine:
|
|
services:
|
|
- docker
|
|
|
|
dependencies:
|
|
override:
|
|
- docker info
|
|
- |
|
|
if [[ "$CIRCLE_BRANCH" == "master" ]]; then
|
|
docker build -t quay.io/vektorlab/ctop:latest .
|
|
else
|
|
docker build -t quay.io/vektorlab/ctop:${CIRCLE_BRANCH} .
|
|
fi
|
|
|
|
test:
|
|
override:
|
|
- docker run -t --entrypoint /bin/sh quay.io/vektorlab/ctop:latest -v
|
|
|
|
deployment:
|
|
hub:
|
|
branch: master
|
|
commands:
|
|
- docker login -e $DOCKER_EMAIL -u $DOCKER_USER -p $DOCKER_PASS quay.io
|
|
- docker push quay.io/vektorlab/ctop:latest
|