Testing firebase deploy, also enabled build for all branches for testing.
This commit is contained in:
parent
c97bbb184e
commit
b8e4624540
@ -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:
|
||||
@ -17,6 +23,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:
|
||||
@ -28,10 +35,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:
|
||||
@ -46,3 +54,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