|
|
@ -0,0 +1,28 @@ |
|
|
|
--- |
|
|
|
resources: |
|
|
|
- name: git-resource |
|
|
|
type: git |
|
|
|
icon: git |
|
|
|
source: |
|
|
|
uri: https://git.nulloctet.com/docker/terraform.git |
|
|
|
tag_filter: "*[0-9].*[0-9].*[0-9]" |
|
|
|
- name: image-dockerhub |
|
|
|
type: docker-image |
|
|
|
icon: docker |
|
|
|
source: |
|
|
|
repository: sothr/terraform |
|
|
|
username: ((hub_docker_write.username)) |
|
|
|
password: ((hub_docker_write.password)) |
|
|
|
|
|
|
|
jobs: |
|
|
|
- name: build-image-dockerhub |
|
|
|
plan: |
|
|
|
- get: git-resource |
|
|
|
trigger: true |
|
|
|
- put: image-dockerhub |
|
|
|
params: |
|
|
|
build: git-resource |
|
|
|
tag_file: git-resource/.git/ref |
|
|
|
tag_as_latest: false |
|
|
|
get_params: {skip_download: true} |
|
|
|
|