riju/.circleci/config.yml

42 lines
912 B
YAML

version: 2
jobs:
build:
docker:
- image: alpine
steps:
- checkout
- setup_remote_docker
- run: |
apk add --no-cache --no-progress \
bash docker make
- run: make image-prod
build_and_deploy:
docker:
- image: alpine
steps:
- checkout
- setup_remote_docker
- run: |
apk add --no-cache --no-progress \
bash docker make openssh
- run: |
echo "${DOCKER_PASSWORD}" | \
docker login --username "${DOCKER_USERNAME}" --password-stdin
- run: scripts/deploy.bash
workflows:
version: 2
ci:
jobs:
- build:
filters:
branches:
ignore: master
tags:
ignore: /.*/
- build_and_deploy:
filters:
branches:
only: master
tags:
ignore: /.*/