keep UI bundle in upstream master; automatically expire for non-master
authorDan Allen <dan@opendevise.com>
Wed, 3 Jan 2018 01:25:18 +0000 (18:25 -0700)
committerDan Allen <dan@opendevise.com>
Wed, 3 Jan 2018 01:25:18 +0000 (18:25 -0700)
.gitlab-ci.yml

index 3298198..87076f4 100644 (file)
@@ -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: