OSDN Git Service

refactors Concourse cofigs.
authorwhitestar <whitestar@gaea.test>
Sun, 25 Jun 2017 01:24:34 +0000 (10:24 +0900)
committerwhitestar <whitestar@gaea.test>
Sun, 25 Jun 2017 01:24:34 +0000 (10:24 +0900)
cookbooks/00cookbook/concourse.yml
cookbooks/00cookbook/fly-vars.yml [new file with mode: 0644]

index 8389eec..90679af 100644 (file)
@@ -1,5 +1,5 @@
 ---
-# $ fly -t target sp -p 00cookbook-cookbook -c concourse.yml -l ~/credentials.yml
+# $ fly -t target sp -p 00cookbook-cookbook -c concourse.yml -l fly-vars.yml -l ~/credentials.yml
 resources:
 - name: src-git
   type: git
@@ -10,11 +10,12 @@ resources:
   type: docker-image
   source:
     repository: chef/chefdk
-    tag: 0.17.17
-    registry_mirror: {{registry-mirror}}  # e.g. https://registry.docker.example.com:5000
+    tag: ((chefdk-version))
+    # ((param)) style: fly >= 3.2.0
+    registry_mirror: https://((registry-mirror-domain))  # e.g. https://registry.docker.example.com:5000
     ca_certs:
-    - domain: {{registry-mirror-domain}}  # e.g. registry.docker.example.com:5000
-      cert: {{docker-reg-ca-cert}}
+    - domain: ((registry-mirror-domain))  # e.g. registry.docker.example.com:5000
+      cert: ((docker-reg-ca-cert))
 
 jobs:
 - name: build-cookbook
@@ -31,23 +32,23 @@ jobs:
       #  type: docker-image
       #  source:
       #    repository: chef/chefdk
-      #    tag: 0.17.17
+      #    tag: ((chefdk-version))
           # NG, setting disable
-          #registry_mirror: {{registry-mirror}}
+          #registry_mirror: https://((registry-mirror-domain))
           #ca_certs:
-          #- domain: {{registry-mirror-domain}}
-          #  cert: {{docker-reg-ca-cert}}
+          #- domain: ((registry-mirror-domain))
+          #  cert: ((docker-reg-ca-cert))
 
       inputs:
       - name: src-git
 
       run:
-        #dir: ./src-git/cookbooks/00cookbook
+        #dir: ./src-git/cookbooks/((cookbook-name))
         #path: rake
         path: /bin/bash
         args:
         - -c
         - |
-          cd ./src-git/cookbooks/00cookbook
+          cd ./src-git/cookbooks/((cookbook-name))
           bundle install
           rake
diff --git a/cookbooks/00cookbook/fly-vars.yml b/cookbooks/00cookbook/fly-vars.yml
new file mode 100644 (file)
index 0000000..a5c5928
--- /dev/null
@@ -0,0 +1,3 @@
+---
+cookbook-name: 00cookbook
+chefdk-version: 0.17.17