From f6933f85ad707e632bc2ec95899ca957e2c4718b Mon Sep 17 00:00:00 2001 From: Drew Short Date: Sun, 8 Dec 2019 23:02:38 -0600 Subject: [PATCH] Updating pipeline --- pipeline.yml | 43 ++++++++++++++++++++++++++++++++++++++++--- 1 file changed, 40 insertions(+), 3 deletions(-) diff --git a/pipeline.yml b/pipeline.yml index e951b7e..2b30f86 100644 --- a/pipeline.yml +++ b/pipeline.yml @@ -42,15 +42,52 @@ jobs: platform: linux image_resource: type: registry-image - source: { repository: bitnami/git, tag: "2-debian-9"} + source: { repository: bitnami/git, tag: "2-debian-9" } inputs: - name: baphomet-js-git + outputs: + - name: baphomet-js-version run: path: /bin/sh args: - -c - | cd baphomet-js-git - $(git describe --tags)-$(git rev-parse HEAD)-$(date --rfc-3339=seconds) > VERSION + echo "$(git describe --tags)-$(git rev-parse HEAD)-$(date --rfc-3339=seconds)" > ../baphomet-js-version/build.info + echo "$(git describe --tags)-$(git rev-parse HEAD)" > ../baphomet-js-version/version.info + cat ../bbaphomet-js-version/build.info + ls -al ../baphomet-js-version/ + - name: package + public: true + plan: + - get: baphomet-js-git + passed: [test, version] + trigger: true + - task: package + config: + platform: linux + image_resource: + type: registry-image + source: { repository: debian, tag: "stretch-slim" } + inputs: + - name: baphoment-js-git + - name: baphomet-js-version outputs: - - name: versioned-project \ No newline at end of file + - name: package + run: + path: /bin/sh + args: + - -c + - | + mkdir tmp + cd tmp + cp ../baphomet-js-version/version.info . + cp ../baphomet-js-version/build.info . + cp ../baphomet-js-git/package*.json . + cp ../baphomet-js-git/index.js . + cp ../baphomet-js-git/assets . + cp ../baphomet-js-git/bot . + cp ../baphomet-js-git/data . + cp ../baphomet-js-git/README.md . + cp ../baphomet-js-git/LICENSE.md . + tar -zcvf ../package/baphomet-js-$(cat VERSION).tgz ./* \ No newline at end of file