This repository has been archived on 2023-08-20. You can view files and clone it, but cannot push or open issues or pull requests.
website/.circleci/config.yml
2021-04-17 11:10:07 +02:00

28 lines
759 B
YAML

version: 2
jobs:
build:
docker:
- image: circleci/node:14.16.1
working_directory: ~/zdamegzaminzawodowy
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/zdam-egzamin-zawodowy-website:latest .
# deploy the image
- run: docker push $DOCKER_LOGIN/zdam-egzamin-zawodowy-website:latest
workflows:
version: 2
deploy_prod:
jobs:
- build:
context: Zdam-Egzamin-Zawodowy
filters:
branches:
only:
- master