Testing firebase deploy, also enabled build for all branches for testing.

This commit is contained in:
Greenscreener 2019-07-19 16:39:24 +02:00
parent fc9ea773d7
commit 0e2e9cd24a

View File

@ -1,7 +1,13 @@
variables:
GIT_SUBMODULE_STRATEGY: recursive
stages:
- lint_build_test
- deploy
lint:
stage: lint_build_test
image:
name: docker/compose:1.24.1
entrypoint:
@ -18,6 +24,7 @@ lint:
- docker-compose run xo-html-lint
- docker-compose run sass-lint
build:
stage: lint_build_test
image:
name: klakegg/hugo:0.55.6-ext-alpine
entrypoint:
@ -29,10 +36,11 @@ build:
paths:
- public
expire_in: 3 months
only:
- master
# only:
#- master
test:
stage: lint_build_test
image:
name: klakegg/hugo:0.55.6-ext-alpine
entrypoint:
@ -47,3 +55,10 @@ test:
paths:
- public
expire_in: 1 month
firebase-deploy:
stage: deploy
image: mitelone/firebase-cli
dependencies:
- build
script:
- firebase deploy --only hosting