diff --git a/pipeline.yml b/pipeline.yml index 6ce1317..7950b3d 100644 --- a/pipeline.yml +++ b/pipeline.yml @@ -28,6 +28,14 @@ resources: - README.md - CONTRIBUTING.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: # Development Pipeline - name: test-develop @@ -78,6 +86,41 @@ jobs: echo $(./scripts/get_version.sh) > ../version/version.info echo $(./scripts/get_tag.sh) > ../version/tag.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 - name: test-release plan: