Testing firebase deploy, also enabled build for all branches for testing.
This commit is contained in:
parent
fc9ea773d7
commit
0e2e9cd24a
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user