Skip to content
This repository has been archived by the owner on Apr 27, 2020. It is now read-only.

Commit

Permalink
Fix not to use old-style template vars in pipeline (#41)
Browse files Browse the repository at this point in the history
  • Loading branch information
superbrothers authored Aug 21, 2018
1 parent fd38dbb commit 4fc4eb5
Show file tree
Hide file tree
Showing 2 changed files with 43 additions and 43 deletions.
68 changes: 34 additions & 34 deletions ci/pipeline.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
# DO NOT MAKE CHANGES TO THIS FILE. Instead, modify ci/pipeline.yml.erb and
# execute build-pipeline-yml.
#
# created: 2018-07-10T15:43:55+09:00
# created: 2018-08-21T15:18:07+09:00
#
resource_types:
- name: slack-notification
Expand Down Expand Up @@ -41,73 +41,73 @@ resources:
- name: notify
type: slack-notification
source:
url: {{slack-url}}
url: ((slack-url))


- name: kubernetes-resource-image-1.6
type: docker-image
source:
repository: zlabjp/kubernetes-resource
tag: "1.6"
username: {{docker-username}}
password: {{docker-password}}
username: ((docker-username))
password: ((docker-password))

- name: kubernetes-resource-image-1.7
type: docker-image
source:
repository: zlabjp/kubernetes-resource
tag: "1.7"
username: {{docker-username}}
password: {{docker-password}}
username: ((docker-username))
password: ((docker-password))

- name: kubernetes-resource-image-1.8
type: docker-image
source:
repository: zlabjp/kubernetes-resource
tag: "1.8"
username: {{docker-username}}
password: {{docker-password}}
username: ((docker-username))
password: ((docker-password))

- name: kubernetes-resource-image-1.9
type: docker-image
source:
repository: zlabjp/kubernetes-resource
tag: "1.9"
username: {{docker-username}}
password: {{docker-password}}
username: ((docker-username))
password: ((docker-password))

- name: kubernetes-resource-image-1.10
type: docker-image
source:
repository: zlabjp/kubernetes-resource
tag: "1.10"
username: {{docker-username}}
password: {{docker-password}}
username: ((docker-username))
password: ((docker-password))

- name: kubernetes-resource-image-1.11
type: docker-image
source:
repository: zlabjp/kubernetes-resource
tag: "1.11"
username: {{docker-username}}
password: {{docker-password}}
username: ((docker-username))
password: ((docker-password))

- name: kubernetes-resource-image-latest
type: docker-image
source:
repository: zlabjp/kubernetes-resource
tag: "latest"
username: {{docker-username}}
password: {{docker-password}}
username: ((docker-username))
password: ((docker-password))


- name: kubernetes-resource-image-edge
type: docker-image
source:
repository: zlabjp/kubernetes-resource
tag: edge
username: {{docker-username}}
password: {{docker-password}}
username: ((docker-username))
password: ((docker-password))


- name: stable-1.6
Expand Down Expand Up @@ -178,15 +178,15 @@ jobs:
on_success:
put: notify
params:
channel: {{slack-success-channel}}
channel: ((slack-success-channel))
username: concourse / kubernetes-resource-image-edge
icon_emoji: ":dancing-penguin:"
text: |
Success! $ATC_EXTERNAL_URL/teams/$BUILD_TEAM_NAME/pipelines/$BUILD_PIPELINE_NAME/jobs/$BUILD_JOB_NAME/builds/$BUILD_NAME
on_failure:
put: notify
params:
channel: {{slack-failure-channel}}
channel: ((slack-failure-channel))
username: concourse / kubernetes-resource:edge
icon_emoji: ":rage:"
text: |
Expand Down Expand Up @@ -217,15 +217,15 @@ jobs:
on_success:
put: notify
params:
channel: {{slack-success-channel}}
channel: ((slack-success-channel))
username: concourse / kubernetes-resource-image-1.6
icon_emoji: ":dancing-penguin:"
text: |
Success! $ATC_EXTERNAL_URL/teams/$BUILD_TEAM_NAME/pipelines/$BUILD_PIPELINE_NAME/jobs/$BUILD_JOB_NAME/builds/$BUILD_NAME
on_failure:
put: notify
params:
channel: {{slack-failure-channel}}
channel: ((slack-failure-channel))
username: concourse / kubernetes-resource-image-1.6
icon_emoji: ":rage:"
text: |
Expand Down Expand Up @@ -255,15 +255,15 @@ jobs:
on_success:
put: notify
params:
channel: {{slack-success-channel}}
channel: ((slack-success-channel))
username: concourse / kubernetes-resource-image-1.7
icon_emoji: ":dancing-penguin:"
text: |
Success! $ATC_EXTERNAL_URL/teams/$BUILD_TEAM_NAME/pipelines/$BUILD_PIPELINE_NAME/jobs/$BUILD_JOB_NAME/builds/$BUILD_NAME
on_failure:
put: notify
params:
channel: {{slack-failure-channel}}
channel: ((slack-failure-channel))
username: concourse / kubernetes-resource-image-1.7
icon_emoji: ":rage:"
text: |
Expand Down Expand Up @@ -293,15 +293,15 @@ jobs:
on_success:
put: notify
params:
channel: {{slack-success-channel}}
channel: ((slack-success-channel))
username: concourse / kubernetes-resource-image-1.8
icon_emoji: ":dancing-penguin:"
text: |
Success! $ATC_EXTERNAL_URL/teams/$BUILD_TEAM_NAME/pipelines/$BUILD_PIPELINE_NAME/jobs/$BUILD_JOB_NAME/builds/$BUILD_NAME
on_failure:
put: notify
params:
channel: {{slack-failure-channel}}
channel: ((slack-failure-channel))
username: concourse / kubernetes-resource-image-1.8
icon_emoji: ":rage:"
text: |
Expand Down Expand Up @@ -331,15 +331,15 @@ jobs:
on_success:
put: notify
params:
channel: {{slack-success-channel}}
channel: ((slack-success-channel))
username: concourse / kubernetes-resource-image-1.9
icon_emoji: ":dancing-penguin:"
text: |
Success! $ATC_EXTERNAL_URL/teams/$BUILD_TEAM_NAME/pipelines/$BUILD_PIPELINE_NAME/jobs/$BUILD_JOB_NAME/builds/$BUILD_NAME
on_failure:
put: notify
params:
channel: {{slack-failure-channel}}
channel: ((slack-failure-channel))
username: concourse / kubernetes-resource-image-1.9
icon_emoji: ":rage:"
text: |
Expand Down Expand Up @@ -369,15 +369,15 @@ jobs:
on_success:
put: notify
params:
channel: {{slack-success-channel}}
channel: ((slack-success-channel))
username: concourse / kubernetes-resource-image-1.10
icon_emoji: ":dancing-penguin:"
text: |
Success! $ATC_EXTERNAL_URL/teams/$BUILD_TEAM_NAME/pipelines/$BUILD_PIPELINE_NAME/jobs/$BUILD_JOB_NAME/builds/$BUILD_NAME
on_failure:
put: notify
params:
channel: {{slack-failure-channel}}
channel: ((slack-failure-channel))
username: concourse / kubernetes-resource-image-1.10
icon_emoji: ":rage:"
text: |
Expand Down Expand Up @@ -407,15 +407,15 @@ jobs:
on_success:
put: notify
params:
channel: {{slack-success-channel}}
channel: ((slack-success-channel))
username: concourse / kubernetes-resource-image-1.11
icon_emoji: ":dancing-penguin:"
text: |
Success! $ATC_EXTERNAL_URL/teams/$BUILD_TEAM_NAME/pipelines/$BUILD_PIPELINE_NAME/jobs/$BUILD_JOB_NAME/builds/$BUILD_NAME
on_failure:
put: notify
params:
channel: {{slack-failure-channel}}
channel: ((slack-failure-channel))
username: concourse / kubernetes-resource-image-1.11
icon_emoji: ":rage:"
text: |
Expand Down Expand Up @@ -445,15 +445,15 @@ jobs:
on_success:
put: notify
params:
channel: {{slack-success-channel}}
channel: ((slack-success-channel))
username: concourse / kubernetes-resource-image-latest
icon_emoji: ":dancing-penguin:"
text: |
Success! $ATC_EXTERNAL_URL/teams/$BUILD_TEAM_NAME/pipelines/$BUILD_PIPELINE_NAME/jobs/$BUILD_JOB_NAME/builds/$BUILD_NAME
on_failure:
put: notify
params:
channel: {{slack-failure-channel}}
channel: ((slack-failure-channel))
username: concourse / kubernetes-resource-image-latest
icon_emoji: ":rage:"
text: |
Expand Down
18 changes: 9 additions & 9 deletions ci/pipeline.yml.erb
Original file line number Diff line number Diff line change
Expand Up @@ -46,25 +46,25 @@ resources:
- name: notify
type: slack-notification
source:
url: {{slack-url}}
url: ((slack-url))

<% kubernetes_versions.each do |version| %>
- name: <%= image_resource_name(version) %>
type: docker-image
source:
repository: zlabjp/kubernetes-resource
tag: "<%= tag(version) %>"
username: {{docker-username}}
password: {{docker-password}}
username: ((docker-username))
password: ((docker-password))
<% end %>

- name: kubernetes-resource-image-edge
type: docker-image
source:
repository: zlabjp/kubernetes-resource
tag: edge
username: {{docker-username}}
password: {{docker-password}}
username: ((docker-username))
password: ((docker-password))

<% kubernetes_versions.each do |version| %>
- name: <%= version %>
Expand Down Expand Up @@ -99,15 +99,15 @@ jobs:
on_success:
put: notify
params:
channel: {{slack-success-channel}}
channel: ((slack-success-channel))
username: concourse / <%= image_resource_name("edge") %>
icon_emoji: ":dancing-penguin:"
text: |
Success! $ATC_EXTERNAL_URL/teams/$BUILD_TEAM_NAME/pipelines/$BUILD_PIPELINE_NAME/jobs/$BUILD_JOB_NAME/builds/$BUILD_NAME
on_failure:
put: notify
params:
channel: {{slack-failure-channel}}
channel: ((slack-failure-channel))
username: concourse / kubernetes-resource:edge
icon_emoji: ":rage:"
text: |
Expand Down Expand Up @@ -138,15 +138,15 @@ jobs:
on_success:
put: notify
params:
channel: {{slack-success-channel}}
channel: ((slack-success-channel))
username: concourse / <%= image_resource_name(version) %>
icon_emoji: ":dancing-penguin:"
text: |
Success! $ATC_EXTERNAL_URL/teams/$BUILD_TEAM_NAME/pipelines/$BUILD_PIPELINE_NAME/jobs/$BUILD_JOB_NAME/builds/$BUILD_NAME
on_failure:
put: notify
params:
channel: {{slack-failure-channel}}
channel: ((slack-failure-channel))
username: concourse / <%= image_resource_name(version) %>
icon_emoji: ":rage:"
text: |
Expand Down

0 comments on commit 4fc4eb5

Please sign in to comment.