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

29 lines
787 B
YAML
Raw Normal View History

2021-04-17 09:04:58 +00:00
version: 2
jobs:
build:
docker:
2021-04-17 09:10:07 +00:00
- image: circleci/node:14.16.1
2021-04-17 09:04:58 +00:00
working_directory: ~/zdamegzaminzawodowy
steps:
- checkout
2021-04-17 09:14:34 +00:00
- setup_remote_docker:
version: 20.10.2
2021-04-17 09:04:58 +00:00
# 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