Update CONTRIBUTING, add Docker to Pipeline

This commit is contained in:
phntxx 2021-11-22 20:55:10 +01:00
parent c07c45a72b
commit e2ebb55768
2 changed files with 45 additions and 0 deletions

View file

@ -50,9 +50,45 @@ jobs:
command: |
yarn coverage
build:
docker:
- image: docker:latest
steps:
- checkout
- setup_remote_docker:
version: 20.10.7
- run:
name: Load Docker image layer cache
command: |
set +o pipefail
docker load -i /caches/app.tar | true
- run:
name: Build application Docker image
command: |
docker build --cache-from=app -t app .
- run:
name: Save Docker image layer cache
command: |
mkdir -p /caches
docker save -o /caches/app.tar app
- save_cache:
key: v1-{{ .Branch }}-{{ epoch }}
paths:
- /caches/app.tar
- deploy:
name: Push application Docker image
command: |
docker login --username ${DOCKER_USER} --password ${DOCKER_PASSWORD}
docker tag app phntxx/dashboard:latest
docker push phntxx/dashboard:latest
workflows:
version: 2
dashboard:
jobs:
- style
- dashboard
- build:
requires:
- style
- dashboard