diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 1777571..2747e33 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -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