From 0e2e9cd24a8ef0bf2dbc4a1b5f51e25da35d8b1f Mon Sep 17 00:00:00 2001 From: Greenscreener Date: Fri, 19 Jul 2019 16:39:24 +0200 Subject: [PATCH 1/3] Testing firebase deploy, also enabled build for all branches for testing. --- .gitlab-ci.yml | 19 +++++++++++++++++-- 1 file changed, 17 insertions(+), 2 deletions(-) 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 From 9fa3702fc592441c8811beb53628e536a5056ad1 Mon Sep 17 00:00:00 2001 From: Greenscreener Date: Fri, 19 Jul 2019 17:24:52 +0200 Subject: [PATCH 2/3] Changed docker image, because the old one was outdated. --- .gitlab-ci.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 2747e33..13709f0 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -57,7 +57,7 @@ test: expire_in: 1 month firebase-deploy: stage: deploy - image: mitelone/firebase-cli + image: andreysenov/firebase-tools dependencies: - build script: From c4b60aa5febf053c00d9dd5af36b12fc78d90d33 Mon Sep 17 00:00:00 2001 From: Greenscreener Date: Fri, 19 Jul 2019 17:46:24 +0200 Subject: [PATCH 3/3] Deployments and builds now happen only on master. --- .gitlab-ci.yml | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 13709f0..5b35ec1 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -36,8 +36,8 @@ build: paths: - public expire_in: 3 months -# only: - #- master + only: + - master test: stage: lint_build_test @@ -61,4 +61,6 @@ firebase-deploy: dependencies: - build script: - - firebase deploy --only hosting + - firebase deploy --only hosting + only: + - master