Merge pull request #1 from tribalwarshelp/circleci-project-setup
Add .circleci/config.yml
This commit is contained in:
commit
d9d62e9f32
29
.circleci/config.yml
Normal file
29
.circleci/config.yml
Normal file
|
@ -0,0 +1,29 @@
|
||||||
|
version: 2
|
||||||
|
jobs:
|
||||||
|
build:
|
||||||
|
docker:
|
||||||
|
- image: circleci/node:12.9.1-browsers
|
||||||
|
working_directory: ~/twhelpwebsite
|
||||||
|
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-website:latest .
|
||||||
|
|
||||||
|
# deploy the image
|
||||||
|
- run: docker push $DOCKER_LOGIN/twhelp-website:latest
|
||||||
|
workflows:
|
||||||
|
version: 2
|
||||||
|
deploy_prod:
|
||||||
|
jobs:
|
||||||
|
- build:
|
||||||
|
context: TWHelp
|
||||||
|
filters:
|
||||||
|
branches:
|
||||||
|
only:
|
||||||
|
- master
|
||||||
|
|
Reference in New Issue
Block a user