Full deployment workflow: push finished assets to DigitalOcean Spaces (cdn.kmkfw.io)

This commit is contained in:
Josh Klar
2019-07-24 20:21:56 -07:00
parent cd7d8a2e4c
commit 39e3a65955
6 changed files with 144 additions and 62 deletions

View File

@@ -7,44 +7,18 @@ jobs:
environment:
KMK_TEST: 1
PIPENV_VENV_IN_PROJECT: 1
steps:
- checkout
- restore_cache:
keys:
- v2-kmk-venv-{{ checksum "Pipfile.lock" }}
- run: make dist
test:
docker:
- image: 'kmkfw/base'
environment:
KMK_TEST: 1
PIPENV_VENV_IN_PROJECT: 1
steps:
- checkout
- restore_cache:
keys:
- v2-kmk-venv-{{ checksum "Pipfile.lock" }}
- run: make test
- run: make dist
- run: make dist-deploy
workflows:
version: 2
build-deploy:
jobs:
- build:
filters:
branches:
# only: /master/
only: /.*/
tags:
only: /.*/
- test:
filters:
branches:
only: /.*/