This repository has been archived on 2022-10-02. You can view files and clone it, but cannot push or open issues or pull requests.
dcbot-old/.circleci/config.yml

29 lines
704 B
YAML
Raw Normal View History

2021-02-06 10:09:18 +00:00
version: 2
jobs:
build:
docker:
- image: circleci/golang:1.15
working_directory: ~/twhelpdcbot
steps:
- checkout
- setup_remote_docker
# start proprietary DB using private Docker image
# with credentials stored in the UI
- run: |
docker login -u $DOCKER_LOGIN -p $DOCKER_PASSWORD
# build the application image
- run: docker build -t $DOCKER_LOGIN/twhelp-dcbot:latest .
2021-02-06 10:09:18 +00:00
# deploy the image
- run: docker push $DOCKER_LOGIN/twhelp-dcbot:latest
2021-02-06 10:09:18 +00:00
workflows:
version: 2
deploy_prod:
jobs:
- build:
context: TWHelp
filters:
branches:
only:
- master