From 7f54f86c2339d43f0c961953f974c021b933fc97 Mon Sep 17 00:00:00 2001 From: Dan Allen Date: Tue, 2 Jan 2018 18:25:18 -0700 Subject: [PATCH] keep UI bundle in upstream master; automatically expire for non-master --- .gitlab-ci.yml | 20 +++++++++++++++++--- 1 file changed, 17 insertions(+), 3 deletions(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 3298198..87076f4 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -18,16 +18,30 @@ lint: paths: - node_modules/ script: node_modules/.bin/gulp lint -bundle: +bundle-stable: stage: deploy + only: + - master@antora/antora-ui-default + cache: + policy: pull + paths: + - node_modules/ + script: node_modules/.bin/gulp pack + artifacts: + paths: + - build/ui-bundle.zip +bundle-dev: + stage: deploy + except: + - master cache: policy: pull paths: - node_modules/ script: node_modules/.bin/gulp pack artifacts: - # automatically expire unless marked as keep from the job page - expire_in: 1 week + # automatically expire unless marked "keep" from job page + expire_in: 1 day paths: - build/ui-bundle.zip pages: -- 2.11.0