Browse Source

Adding concourse pipeline

add-file-preservation 1.0.0
Drew Short 5 years ago
parent
commit
1d750e5b62
  1. 40
      pipeline.yml
  2. 11
      upload_pipeline.sh

40
pipeline.yml

@ -0,0 +1,40 @@
---
resources:
- name: git-resource
type: git
icon: git
source:
uri: https://git.nulloctet.com/warricksothr/Asset-Compression-Manager.git
tag_filter: "*[0-9].*[0-9].*[0-9]"
- name: git-resource-image-nexus
type: docker-image
icon: docker
source:
repository: ((nexus_docker_write.host))/sothr/acm
username: ((nexus_docker_write.username))
password: ((nexus_docker_write.password))
- name: git-resource-image
type: docker-image
icon: docker
source:
repository: sothr/acm
username: ((hub_docker_write.username))
password: ((hub_docker_write.password))
jobs:
- name: build-image
plan:
- get: git-resource
trigger: true
- put: git-resource-image-nexus
params:
build: git-resource
tag_file: git-resource/.git/ref
tag_as_latest: true
get_params: {skip_download: true}
- put: git-resource-image
params:
build: git-resource
tag_file: git-resource/.git/ref
tag_as_latest: true
get_params: {skip_download: true}

11
upload_pipeline.sh

@ -0,0 +1,11 @@
#!/usr/bin/env bash
TEAM=docker
PIPELINE=acm
DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" >/dev/null 2>&1 && pwd )"
pushd "${DIR}"
fly -t ${TEAM} set-pipeline --pipeline ${PIPELINE} --config pipeline.yml
popd
Loading…
Cancel
Save