Add .circleci/config.yml

This commit is contained in:
Dawid Wysokiński 2021-02-07 19:55:32 +01:00
parent ce842d369c
commit 4a8b61e410
1 changed files with 28 additions and 0 deletions

28
.circleci/config.yml Normal file
View File

@ -0,0 +1,28 @@
version: 2
jobs:
build:
docker:
- image: circleci/node:12.9.1-browsers
working_directory: ~/dwysokinski
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/dwysokinski.me:latest .
# deploy the image
- run: docker push $DOCKER_LOGIN/dwysokinski.me:latest
workflows:
version: 2
deploy_prod:
jobs:
- build:
context: dockerhub
filters:
branches:
only:
- master