diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 1777571..5b35ec1 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: @@ -33,6 +40,7 @@ build: - master test: + stage: lint_build_test image: name: klakegg/hugo:0.55.6-ext-alpine entrypoint: @@ -47,3 +55,12 @@ test: paths: - public expire_in: 1 month +firebase-deploy: + stage: deploy + image: andreysenov/firebase-tools + dependencies: + - build + script: + - firebase deploy --only hosting + only: + - master