27 lines
722 B
YAML
27 lines
722 B
YAML
version: 2
|
|
jobs:
|
|
build:
|
|
docker:
|
|
- image: docker:17.05.0-ce-git
|
|
working_directory: ~/caspar-sup
|
|
steps:
|
|
- checkout
|
|
- setup_remote_docker
|
|
- run:
|
|
name: Build docker image
|
|
command: docker build -t nfpis/caspar-sup:build_${CIRCLE_BUILD_NUM} -t nfpis/caspar-sup:${CIRCLE_SHA1} -t nfpis/caspar-sup:latest .
|
|
- run:
|
|
name: Push to docker
|
|
command: |
|
|
docker login -u $DOCKER_USER -p $DOCKER_PASS
|
|
docker push nfpis/caspar-sup
|
|
- deploy:
|
|
name: Deploy to production
|
|
command: |
|
|
echo Not implemented
|
|
workflows:
|
|
version: 2
|
|
build_deploy:
|
|
jobs:
|
|
- build:
|
|
context: org-global
|