Browse Source

Added develop package and deploy step to pipeline

pull/10/head
Drew Short 5 years ago
parent
commit
7becc77175
  1. 43
      pipeline.yml

43
pipeline.yml

@ -28,6 +28,14 @@ resources:
- README.md - README.md
- CONTRIBUTING.md - CONTRIBUTING.md
- LICENSE.md - LICENSE.md
- name: docker-image
type: docker-image
icon: docker
source:
repository: ((nexus_docker_write.host))/nulloctet/baphomet-js
username: ((nexus_docker_write.username))
password: ((nexus_docker_write.password))
jobs: jobs:
# Development Pipeline # Development Pipeline
- name: test-develop - name: test-develop
@ -78,6 +86,41 @@ jobs:
echo $(./scripts/get_version.sh) > ../version/version.info echo $(./scripts/get_version.sh) > ../version/version.info
echo $(./scripts/get_tag.sh) > ../version/tag.info echo $(./scripts/get_tag.sh) > ../version/tag.info
cat ../version/build.info cat ../version/build.info
- task: package
config:
platform: linux
image_resource:
type: registry-image
source: { repository: debian, tag: "stretch-slim" }
inputs:
- name: git-develop
- name: version
outputs:
- name: package
run:
path: /bin/sh
args:
- -c
- |
mkdir tmp
cd tmp
cp ../version/build.info .
cp ../version/version.info .
cp ../version/tag.info .
cp ../git-master/package*.json .
cp ../git-master/index.js .
cp -r ../git-master/assets .
cp -r ../git-master/bot .
cp -r ../git-master/data .
cp ../git-master/entrypoint.js .
cp ../git-master/Dockerfile .
cp ../git-master/README.md .
cp ../git-master/LICENSE.md .
- put: docker-image
params:
build: package
tag_file: package/tag.info
tag_as_latest: false
# Release Pipeline # Release Pipeline
- name: test-release - name: test-release
plan: plan:

Loading…
Cancel
Save