daily pastebin goal
60%
SHARE
TWEET

Untitled

a guest Feb 16th, 2019 69 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. ---
  2. resource_types:
  3.   - name: slack-notification
  4.     type: docker-image
  5.     source:
  6.       repository: cfcommunity/slack-notification-resource
  7.       tag: latest
  8.  
  9. resources:
  10.   - name: git-develop
  11.     type: git
  12.     source:
  13.       uri: ((git-repository-url)):((git-repository-uri)).git
  14.       private_key: ((secret-private-key))
  15.       branch: develop
  16.  
  17.   - name: git-master
  18.     type: git
  19.     source:
  20.       uri: ((git-repository-url)):((git-repository-uri)).git
  21.       private_key: ((secret-private-key))
  22.       branch: master
  23.  
  24.   - name: git-master-tagged
  25.     type: git
  26.     source:
  27.       uri: ((git-repository-url)):((git-repository-uri)).git
  28.       private_key: ((secret-private-key))
  29.       branch: master
  30.       tag_filter: '[0-9]*'
  31.  
  32.   - name: slack-alert
  33.     type: slack-notification
  34.     source:
  35.       url: ((slack-notification-url))
  36.  
  37.   - name: develop-docker-image
  38.     type: docker-image
  39.     source:
  40.       repository: ((docker-registry-url))/((docker-registry-uri))
  41.       tag: develop
  42.  
  43.   - name: master-docker-image
  44.     type: docker-image
  45.     source:
  46.       repository: ((docker-registry-url))/((docker-registry-uri))
  47.       tag: master
  48.  
  49.   - name: master-tagged-docker-image
  50.     type: docker-image
  51.     source:
  52.       repository: ((docker-registry-url))/((docker-registry-uri))
  53.       tag: master-tagged
  54.  
  55. jobs:
  56.   - name: build-develop-image
  57.     plan:
  58.       - get: git-develop
  59.         trigger: true
  60.       - put: develop-docker-image
  61.         params:
  62.           build_args:
  63.             SSH__KEY_CONTENT: ((secret-private-key))
  64.           build: git-develop
  65.           dockerfile: git-develop/.docker/Dockerfile
  66.       - put: slack-alert
  67.   - name: build-master-image
  68.     plan:
  69.       - get: git-master
  70.         trigger: true
  71.       - put: master-docker-image
  72.         params:
  73.           build_args:
  74.             SSH__KEY_CONTENT: ((secret-private-key))
  75.           build: git-master
  76.           dockerfile: git-master/.docker/Dockerfile
  77.       - put: slack-alert
  78.   - name: build-master-tagged-image
  79.     plan:
  80.       - get: git-master-tagged
  81.         trigger: true
  82.       - put: master-tagged-docker-image
  83.         params:
  84.           build_args:
  85.             SSH__KEY_CONTENT: ((secret-private-key))
  86.           build: git-master-tagged
  87.           dockerfile: git-master-tagged/.docker/Dockerfile
  88.       - put: slack-alert
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top