From 91c429cf03f9624d3c74df03a8a87ed69819cf76 Mon Sep 17 00:00:00 2001 From: Drew Date: Thu, 26 Nov 2020 23:26:27 -0600 Subject: [PATCH] Added pipeline configuration --- pipeline.yaml | 28 ++++++++++++++++++++++++++++ scripts/upload_pipeline.sh | 2 +- 2 files changed, 29 insertions(+), 1 deletion(-) diff --git a/pipeline.yaml b/pipeline.yaml index e69de29..093a884 100644 --- a/pipeline.yaml +++ b/pipeline.yaml @@ -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} + diff --git a/scripts/upload_pipeline.sh b/scripts/upload_pipeline.sh index 1d6fc68..8c70ff3 100755 --- a/scripts/upload_pipeline.sh +++ b/scripts/upload_pipeline.sh @@ -8,6 +8,6 @@ DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" >/dev/null 2>&1 && pwd )" cd "${DIR}/.." || exit -fly -t ${TEAM} set-pipeline --pipeline ${PIPELINE} --config pipeline.yml +fly -t ${TEAM} set-pipeline --pipeline ${PIPELINE} --config pipeline.yaml cd "$START_DIR" || exit