Browse Source

Updating pipeline

pull/8/head
Drew Short 5 years ago
parent
commit
f6933f85ad
  1. 41
      pipeline.yml

41
pipeline.yml

@ -45,12 +45,49 @@ jobs:
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
- 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 ./*
Loading…
Cancel
Save