|
@ -45,12 +45,49 @@ jobs: |
|
|
source: { repository: bitnami/git, tag: "2-debian-9" } |
|
|
source: { repository: bitnami/git, tag: "2-debian-9" } |
|
|
inputs: |
|
|
inputs: |
|
|
- name: baphomet-js-git |
|
|
- name: baphomet-js-git |
|
|
|
|
|
outputs: |
|
|
|
|
|
- name: baphomet-js-version |
|
|
run: |
|
|
run: |
|
|
path: /bin/sh |
|
|
path: /bin/sh |
|
|
args: |
|
|
args: |
|
|
- -c |
|
|
- -c |
|
|
- | |
|
|
- | |
|
|
cd baphomet-js-git |
|
|
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: |
|
|
outputs: |
|
|
- name: versioned-project |
|
|
|
|
|
|
|
|
- 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 ./* |