From ae5d4481cf1b83ab660b4629563d35be5a49af61 Mon Sep 17 00:00:00 2001 From: guidowb Date: Thu, 27 Oct 2016 21:10:52 -0500 Subject: [PATCH 1/3] Automatically include meta-buildpack as dependency for decorators Fixes #143 --- sample/src/build.sh | 5 +++- sample/src/buildpack/bin/decorate | 20 ++++++++++++++++ sample/tile.yml | 4 ++++ tile_generator/config.py | 38 ++++++++++++++++--------------- 4 files changed, 48 insertions(+), 19 deletions(-) create mode 100755 sample/src/buildpack/bin/decorate diff --git a/sample/src/build.sh b/sample/src/build.sh index 02fdb686..920b8674 100755 --- a/sample/src/build.sh +++ b/sample/src/build.sh @@ -36,4 +36,7 @@ pip install --no-binary :all: --download vendor -r requirements.txt zip -r "${RESOURCES_DIR}/app.zip" * cd "${BUILDPACK_DIR}" -zip -r "${RESOURCES_DIR}/buildpack.zip" * +zip -r "${RESOURCES_DIR}/buildpack.zip" bin/detect bin/compile bin/release + +cd "${BUILDPACK_DIR}" +zip -r "${RESOURCES_DIR}/decorator.zip" bin/detect bin/compile bin/decorate diff --git a/sample/src/buildpack/bin/decorate b/sample/src/buildpack/bin/decorate new file mode 100755 index 00000000..863b3e2b --- /dev/null +++ b/sample/src/buildpack/bin/decorate @@ -0,0 +1,20 @@ +#!/usr/bin/env bash +# bin/decorate + +# tile-generator +# +# Copyright (c) 2015-Present Pivotal Software, Inc. All Rights Reserved. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +exit 1 diff --git a/sample/tile.yml b/sample/tile.yml index d7ccc914..93e0a21a 100644 --- a/sample/tile.yml +++ b/sample/tile.yml @@ -162,6 +162,10 @@ packages: buildpack_order: 99 # 99 (or higher) means go to the end of the list path: resources/buildpack.zip +- name: noop-decorator # A decorator buildpack + type: decorator + path: resources/decorator.zip + - name: app3 type: docker-app image: guidowb/sample-cf-app # Start command must be specified in the Dockerfile (CMD) diff --git a/tile_generator/config.py b/tile_generator/config.py index 78144883..0eb40398 100644 --- a/tile_generator/config.py +++ b/tile_generator/config.py @@ -145,7 +145,7 @@ def normalize_jobs(self): for job in release.get('jobs', []): job['type'] = job.get('type', job['name']) job['template'] = job.get('template', job['type']) - + def release_for_package(self, package): release_name = package['name'] if package.get('is_bosh_release', False) else self['name'] release = self.release_by_name(release_name) @@ -233,23 +233,25 @@ def add_dependencies(self): 'name': 'docker-boshrelease', 'path': 'https://bosh.io/d/github.com/cf-platform-eng/docker-boshrelease' + version_param, }] - # if requires_meta_buildpack: - # self['releases'] += [{ - # 'name': 'meta-buildpack', - # 'path': 'github://cf-platform-eng/meta-buildpack/meta-buildpack.tgz', - # 'jobs': [ - # { - # 'name': 'deploy-all', - # 'type': 'deploy-all', - # 'is_errand': True - # }, - # { - # 'name': 'delete-all', - # 'type': 'delete-all', - # 'is_errand': True - # } - # ] - # }] + if requires_meta_buildpack: + self['releases'] += [{ + 'name': 'meta-buildpack', + 'path': 'github://cf-platform-eng/meta-buildpack/meta-buildpack.tgz', + 'jobs': [ + { + 'name': 'deploy-meta-buildpack', + 'type': 'deploy-all', + 'lifecycle': 'errand', + 'post_deploy': True + }, + { + 'name': 'delete-meta-buildpack', + 'type': 'delete-all', + 'lifecycle': 'errand', + 'pre_delete': True + } + ] + }] def save_history(self): with open(HISTORY_FILE, 'wb') as history_file: From b2d6a48785bac00006f1299392ef0a84c9a4026a Mon Sep 17 00:00:00 2001 From: guidowb Date: Thu, 27 Oct 2016 21:27:22 -0500 Subject: [PATCH 2/3] Explicitly specify errands to run (because 1.7 breaks otherwise) --- ci/scripts/run-deploytile.sh | 2 +- ci/scripts/run-removetile.sh | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/ci/scripts/run-deploytile.sh b/ci/scripts/run-deploytile.sh index 9c3a2388..598bda87 100755 --- a/ci/scripts/run-deploytile.sh +++ b/ci/scripts/run-deploytile.sh @@ -64,5 +64,5 @@ $PCF configure "${PRODUCT}" "${REPO_DIR}/sample/missing-properties.yml" echo echo "Applying Changes" -$PCF apply-changes +$PCF apply-changes --deploy-errands deploy-meta-buildpack,deploy-all,acceptance-tests echo diff --git a/ci/scripts/run-removetile.sh b/ci/scripts/run-removetile.sh index 40404ad4..15047fd5 100755 --- a/ci/scripts/run-removetile.sh +++ b/ci/scripts/run-removetile.sh @@ -51,7 +51,7 @@ $PCF uninstall "${PRODUCT}" echo echo "Applying Changes" -$PCF apply-changes +$PCF apply-changes --delete-errands delete-all,delete-meta-buildpack echo echo "Available products:" From 0883ea0b93ae585d4bf8423bf0cb59b5aafae6da Mon Sep 17 00:00:00 2001 From: guidowb Date: Fri, 28 Oct 2016 08:37:05 -0500 Subject: [PATCH 3/3] Changed release model --- ci/pipeline.yml | 316 ++++++++++++++++++++++++++++-------------------- 1 file changed, 188 insertions(+), 128 deletions(-) diff --git a/ci/pipeline.yml b/ci/pipeline.yml index 13881c1a..b49239e5 100644 --- a/ci/pipeline.yml +++ b/ci/pipeline.yml @@ -2,31 +2,32 @@ groups: -- name: all +- name: ci jobs: - build-base-image - unit-tests - - create-dev - package-tile-generator - install-tile-generator - build-tile - acceptance-tests + - claim-1-6 - deploy-tile-1-6 - deployment-tests-1-6 - remove-tile-1-6 + - claim-1-7 - deploy-tile-1-7 - deployment-tests-1-7 - remove-tile-1-7 + - claim-1-8 - deploy-tile-1-8 - deployment-tests-1-8 - remove-tile-1-8 - - publish-release -- name: version +- name: release jobs: - - create-patch - - create-minor - - create-major + - bump-minor + - bump-major + - create-release resource_types: @@ -46,16 +47,18 @@ resources: - name: tile-generator-repo type: git source: - ignore_paths: [ "ci/*-tests", "sample/missing-properties.yml" ] + ignore_paths: [ "ci/docker-tile-generator", "ci/docker-tile-pipeline" ] branch: {{github-branch}} uri: http://github.com/cf-platform-eng/tile-generator.git -- name: tile-generator-tag - type: git +- name: tile-generator-github-prerelease + type: github-release source: - branch: {{github-branch}} - uri: git@github.com:cf-platform-eng/tile-generator.git - private_key: {{github-semver-private-key}} + user: cf-platform-eng + repository: tile-generator + access_token: {{github-release-token}} + release: false + pre_release: true - name: tile-generator-github-release type: github-release @@ -71,13 +74,6 @@ resources: username: {{pypi-user}} password: {{pypi-password}} -- name: tile-generator-tests - type: git - source: - paths: [ "ci/*-tests", "ci/scripts", "sample/missing-properties.yml" ] - branch: {{github-branch}} - uri: http://github.com/cf-platform-eng/tile-generator.git - - name: base-pipeline-dockerfile-repo type: git source: @@ -127,12 +123,20 @@ resources: - name: base-pipeline-docker-image type: docker-image source: - repository: guidowb/base-pipeline + repository: cfplatformeng/tile-generator-pipeline email: {{docker-hub-email}} username: {{docker-hub-username}} password: {{docker-hub-password}} - name: tile-generator-docker-image + type: docker-image + source: + repository: cfplatformeng/tile-generator-prerelease + email: {{docker-hub-email}} + username: {{docker-hub-username}} + password: {{docker-hub-password}} + +- name: tile-generator-docker-image-release type: docker-image source: repository: cfplatformeng/tile-generator @@ -143,7 +147,7 @@ resources: - name: app-docker-image type: docker-image source: - repository: guidowb/sample-cf-app + repository: cfplatformeng/tile-generator-sample-app email: {{docker-hub-email}} username: {{docker-hub-username}} password: {{docker-hub-password}} @@ -222,7 +226,7 @@ jobs: text: '(master) Unit tests failed, check for details' username: Tile Generator -- name: create-dev +- name: package-tile-generator plan: - aggregate: - get: base-pipeline-docker-image @@ -231,39 +235,13 @@ jobs: - get: tile-generator-repo passed: [ unit-tests ] trigger: true - - put: version - params: - pre: dev - -- name: create-patch - plan: - - put: version - params: - bump: patch - -- name: create-minor - plan: - - put: version - params: - bump: minor - -- name: create-major - plan: - - put: version + - put: version + params: + pre: dev + - get: final-version + resource: version params: - bump: major - -- name: package-tile-generator - plan: - - aggregate: - - get: base-pipeline-docker-image - passed: [ create-dev ] - trigger: true - - get: tile-generator-repo - passed: [ create-dev ] - trigger: true - - get: version - trigger: true + bump: final - task: build-package image: base-pipeline-docker-image config: @@ -271,6 +249,7 @@ jobs: inputs: - name: tile-generator-repo - name: version + - name: final-version outputs: - name: tile-generator-dist run: @@ -278,7 +257,7 @@ jobs: path: sh args: - -c - - cp ../version/version version.txt && python setup.py sdist && cp dist/tile-generator-*.tar.gz ../tile-generator-dist/tile-generator-`cat version.txt`.tar.gz + - cp ../final-version/version version.txt && python setup.py sdist && cp dist/tile-generator-*.tar.gz ../tile-generator-dist/tile-generator-`cat version.txt`.tar.gz on_failure: aggregate: - put: slack-alert @@ -291,14 +270,16 @@ jobs: - put: tile-generator-package params: file: tile-generator-dist/tile-generator-*.tar.gz - - put: tile-generator-tag + - put: tile-generator-github-prerelease params: - repository: tile-generator-repo - only_tag: true + name: version/version tag: version/version tag_prefix: v + globs: + - tile-generator-dist/tile-generator-*.tar.gz - name: install-tile-generator + disable_manual_trigger: true plan: - aggregate: - get: base-pipeline-docker-image @@ -312,7 +293,6 @@ jobs: trigger: true - get: version passed: [ package-tile-generator ] - trigger: true - get: tile-generator-dockerfile-repo trigger: true - task: prepare-docker-build @@ -344,6 +324,7 @@ jobs: tag_prefix: v - name: build-tile + disable_manual_trigger: true plan: - aggregate: - get: tile-generator-docker-image @@ -357,7 +338,6 @@ jobs: trigger: true - get: version passed: [ install-tile-generator ] - trigger: true - get: tile-generator-package passed: [ install-tile-generator ] trigger: true @@ -438,13 +418,12 @@ jobs: file: generated-tile/*.pivotal - name: acceptance-tests + disable_manual_trigger: true plan: - aggregate: - get: tile-generator-docker-image passed: [ build-tile ] trigger: true - - get: tile-generator-tests - trigger: true - get: generated-tile passed: [ build-tile ] trigger: true @@ -453,7 +432,6 @@ jobs: trigger: true - get: version passed: [ build-tile ] - trigger: true - get: tile-generator-package passed: [ build-tile ] trigger: true @@ -462,10 +440,10 @@ jobs: config: platform: linux inputs: - - name: tile-generator-tests + - name: tile-generator-repo - name: generated-tile run: - path: tile-generator-tests/ci/scripts/run-acceptancetests.sh + path: tile-generator-repo/ci/scripts/run-acceptancetests.sh args: [ "generated-tile" ] on_failure: aggregate: @@ -476,15 +454,13 @@ jobs: text: '(master) Acceptance tests failed, check for details' username: Tile Generator -- name: deploy-tile-1-6 +- name: claim-1-6 + disable_manual_trigger: true plan: - aggregate: - get: tile-generator-docker-image passed: [ acceptance-tests ] trigger: true - - get: tile-generator-tests - passed: [ acceptance-tests ] - trigger: true - get: generated-tile passed: [ acceptance-tests ] trigger: true @@ -493,23 +469,44 @@ jobs: trigger: true - get: version passed: [ acceptance-tests ] - trigger: true - get: tile-generator-package passed: [ acceptance-tests ] trigger: true - put: pcf-environment-1-6 params: acquire: true + +- name: deploy-tile-1-6 + disable_manual_trigger: true + plan: + - aggregate: + - get: tile-generator-docker-image + passed: [ claim-1-6 ] + trigger: true + - get: generated-tile + passed: [ claim-1-6 ] + trigger: true + - get: tile-generator-repo + passed: [ claim-1-6 ] + trigger: true + - get: version + passed: [ claim-1-6 ] + - get: tile-generator-package + passed: [ claim-1-6 ] + trigger: true + - get: pcf-environment-1-6 + passed: [ claim-1-6 ] + trigger: true - task: run-deploy-tile image: tile-generator-docker-image config: platform: linux inputs: - - name: tile-generator-tests + - name: tile-generator-repo - name: pcf-environment-1-6 - name: generated-tile run: - path: tile-generator-tests/ci/scripts/run-deploytile.sh + path: tile-generator-repo/ci/scripts/run-deploytile.sh args: [ "generated-tile", "pcf-environment-1-6" ] on_failure: aggregate: @@ -524,14 +521,12 @@ jobs: username: Tile Generator - name: deployment-tests-1-6 + disable_manual_trigger: true plan: - aggregate: - get: tile-generator-docker-image passed: [ deploy-tile-1-6 ] trigger: true - - get: tile-generator-tests - passed: [ deploy-tile-1-6 ] - trigger: true - get: generated-tile passed: [ deploy-tile-1-6 ] trigger: true @@ -543,7 +538,6 @@ jobs: trigger: true - get: version passed: [ deploy-tile-1-6 ] - trigger: true - get: tile-generator-package passed: [ deploy-tile-1-6 ] trigger: true @@ -552,11 +546,11 @@ jobs: config: platform: linux inputs: - - name: tile-generator-tests + - name: tile-generator-repo - name: pcf-environment-1-6 - name: generated-tile run: - path: tile-generator-tests/ci/scripts/run-deploymenttests.sh + path: tile-generator-repo/ci/scripts/run-deploymenttests.sh args: [ "generated-tile", "pcf-environment-1-6" ] on_failure: aggregate: @@ -571,14 +565,12 @@ jobs: username: Tile Generator - name: remove-tile-1-6 + disable_manual_trigger: true plan: - aggregate: - get: tile-generator-docker-image passed: [ deployment-tests-1-6 ] trigger: true - - get: tile-generator-tests - passed: [ deployment-tests-1-6 ] - trigger: true - get: generated-tile passed: [ deployment-tests-1-6 ] trigger: true @@ -590,7 +582,6 @@ jobs: trigger: true - get: version passed: [ deployment-tests-1-6 ] - trigger: true - get: tile-generator-package passed: [ deployment-tests-1-6 ] trigger: true @@ -599,11 +590,11 @@ jobs: config: platform: linux inputs: - - name: tile-generator-tests + - name: tile-generator-repo - name: pcf-environment-1-6 - name: generated-tile run: - path: tile-generator-tests/ci/scripts/run-removetile.sh + path: tile-generator-repo/ci/scripts/run-removetile.sh args: [ "generated-tile", "pcf-environment-1-6" ] ensure: put: pcf-environment-1-6 @@ -617,15 +608,13 @@ jobs: text: '(master) Remove tile failed, check for details' username: Tile Generator -- name: deploy-tile-1-7 +- name: claim-1-7 + disable_manual_trigger: true plan: - aggregate: - get: tile-generator-docker-image passed: [ acceptance-tests ] trigger: true - - get: tile-generator-tests - passed: [ acceptance-tests ] - trigger: true - get: generated-tile passed: [ acceptance-tests ] trigger: true @@ -634,23 +623,44 @@ jobs: trigger: true - get: version passed: [ acceptance-tests ] - trigger: true - get: tile-generator-package passed: [ acceptance-tests ] trigger: true - put: pcf-environment-1-7 params: acquire: true + +- name: deploy-tile-1-7 + disable_manual_trigger: true + plan: + - aggregate: + - get: tile-generator-docker-image + passed: [ claim-1-7 ] + trigger: true + - get: generated-tile + passed: [ claim-1-7 ] + trigger: true + - get: tile-generator-repo + passed: [ claim-1-7 ] + trigger: true + - get: version + passed: [ claim-1-7 ] + - get: tile-generator-package + passed: [ claim-1-7 ] + trigger: true + - get: pcf-environment-1-7 + passed: [ claim-1-7 ] + trigger: true - task: run-deploy-tile image: tile-generator-docker-image config: platform: linux inputs: - - name: tile-generator-tests + - name: tile-generator-repo - name: pcf-environment-1-7 - name: generated-tile run: - path: tile-generator-tests/ci/scripts/run-deploytile.sh + path: tile-generator-repo/ci/scripts/run-deploytile.sh args: [ "generated-tile", "pcf-environment-1-7" ] on_failure: aggregate: @@ -665,14 +675,12 @@ jobs: username: Tile Generator - name: deployment-tests-1-7 + disable_manual_trigger: true plan: - aggregate: - get: tile-generator-docker-image passed: [ deploy-tile-1-7 ] trigger: true - - get: tile-generator-tests - passed: [ deploy-tile-1-7 ] - trigger: true - get: generated-tile passed: [ deploy-tile-1-7 ] trigger: true @@ -684,7 +692,6 @@ jobs: trigger: true - get: version passed: [ deploy-tile-1-7 ] - trigger: true - get: tile-generator-package passed: [ deploy-tile-1-7 ] trigger: true @@ -693,11 +700,11 @@ jobs: config: platform: linux inputs: - - name: tile-generator-tests + - name: tile-generator-repo - name: pcf-environment-1-7 - name: generated-tile run: - path: tile-generator-tests/ci/scripts/run-deploymenttests.sh + path: tile-generator-repo/ci/scripts/run-deploymenttests.sh args: [ "generated-tile", "pcf-environment-1-7" ] on_failure: aggregate: @@ -712,14 +719,12 @@ jobs: username: Tile Generator - name: remove-tile-1-7 + disable_manual_trigger: true plan: - aggregate: - get: tile-generator-docker-image passed: [ deployment-tests-1-7 ] trigger: true - - get: tile-generator-tests - passed: [ deployment-tests-1-7 ] - trigger: true - get: generated-tile passed: [ deployment-tests-1-7 ] trigger: true @@ -731,7 +736,6 @@ jobs: trigger: true - get: version passed: [ deployment-tests-1-7 ] - trigger: true - get: tile-generator-package passed: [ deployment-tests-1-7 ] trigger: true @@ -740,11 +744,11 @@ jobs: config: platform: linux inputs: - - name: tile-generator-tests + - name: tile-generator-repo - name: pcf-environment-1-7 - name: generated-tile run: - path: tile-generator-tests/ci/scripts/run-removetile.sh + path: tile-generator-repo/ci/scripts/run-removetile.sh args: [ "generated-tile", "pcf-environment-1-7" ] ensure: put: pcf-environment-1-7 @@ -758,15 +762,13 @@ jobs: text: '(master) Remove tile failed, check for details' username: Tile Generator -- name: deploy-tile-1-8 +- name: claim-1-8 + disable_manual_trigger: true plan: - aggregate: - get: tile-generator-docker-image passed: [ acceptance-tests ] trigger: true - - get: tile-generator-tests - passed: [ acceptance-tests ] - trigger: true - get: generated-tile passed: [ acceptance-tests ] trigger: true @@ -775,23 +777,44 @@ jobs: trigger: true - get: version passed: [ acceptance-tests ] - trigger: true - get: tile-generator-package passed: [ acceptance-tests ] trigger: true - put: pcf-environment-1-8 params: acquire: true + +- name: deploy-tile-1-8 + disable_manual_trigger: true + plan: + - aggregate: + - get: tile-generator-docker-image + passed: [ claim-1-8 ] + trigger: true + - get: generated-tile + passed: [ claim-1-8 ] + trigger: true + - get: tile-generator-repo + passed: [ claim-1-8 ] + trigger: true + - get: version + passed: [ claim-1-8 ] + - get: tile-generator-package + passed: [ claim-1-8 ] + trigger: true + - get: pcf-environment-1-8 + passed: [ claim-1-8 ] + trigger: true - task: run-deploy-tile image: tile-generator-docker-image config: platform: linux inputs: - - name: tile-generator-tests + - name: tile-generator-repo - name: pcf-environment-1-8 - name: generated-tile run: - path: tile-generator-tests/ci/scripts/run-deploytile.sh + path: tile-generator-repo/ci/scripts/run-deploytile.sh args: [ "generated-tile", "pcf-environment-1-8" ] on_failure: aggregate: @@ -806,14 +829,12 @@ jobs: username: Tile Generator - name: deployment-tests-1-8 + disable_manual_trigger: true plan: - aggregate: - get: tile-generator-docker-image passed: [ deploy-tile-1-8 ] trigger: true - - get: tile-generator-tests - passed: [ deploy-tile-1-8 ] - trigger: true - get: generated-tile passed: [ deploy-tile-1-8 ] trigger: true @@ -825,7 +846,6 @@ jobs: trigger: true - get: version passed: [ deploy-tile-1-8 ] - trigger: true - get: tile-generator-package passed: [ deploy-tile-1-8 ] trigger: true @@ -834,11 +854,11 @@ jobs: config: platform: linux inputs: - - name: tile-generator-tests + - name: tile-generator-repo - name: pcf-environment-1-8 - name: generated-tile run: - path: tile-generator-tests/ci/scripts/run-deploymenttests.sh + path: tile-generator-repo/ci/scripts/run-deploymenttests.sh args: [ "generated-tile", "pcf-environment-1-8" ] on_failure: aggregate: @@ -853,14 +873,12 @@ jobs: username: Tile Generator - name: remove-tile-1-8 + disable_manual_trigger: true plan: - aggregate: - get: tile-generator-docker-image passed: [ deployment-tests-1-8 ] trigger: true - - get: tile-generator-tests - passed: [ deployment-tests-1-8 ] - trigger: true - get: generated-tile passed: [ deployment-tests-1-8 ] trigger: true @@ -872,7 +890,6 @@ jobs: trigger: true - get: version passed: [ deployment-tests-1-8 ] - trigger: true - get: tile-generator-package passed: [ deployment-tests-1-8 ] trigger: true @@ -881,11 +898,11 @@ jobs: config: platform: linux inputs: - - name: tile-generator-tests + - name: tile-generator-repo - name: pcf-environment-1-8 - name: generated-tile run: - path: tile-generator-tests/ci/scripts/run-removetile.sh + path: tile-generator-repo/ci/scripts/run-removetile.sh args: [ "generated-tile", "pcf-environment-1-8" ] ensure: put: pcf-environment-1-8 @@ -899,15 +916,36 @@ jobs: text: '(master) Remove tile failed, check for details' username: Tile Generator -- name: publish-release +- name: create-release plan: - aggregate: + - get: tile-generator-docker-image + passed: [ remove-tile-1-6, remove-tile-1-7, remove-tile-1-8 ] + params: + save: true - get: tile-generator-package passed: [ remove-tile-1-6, remove-tile-1-7, remove-tile-1-8 ] - trigger: true - get: version passed: [ remove-tile-1-6, remove-tile-1-7, remove-tile-1-8 ] - trigger: true + - put: version + params: + bump: final + - task: rename-files + image: tile-generator-docker-image + config: + platform: linux + inputs: + - name: tile-generator-package + - name: version + outputs: + - name: renamed-files + run: + path: sh + args: + - -exc + - | + FINAL_VERSION=`cat version/version` + cp tile-generator-package/tile-generator-*.tar.gz renamed-files/tile-generator-${FINAL_VERSION}.tar.gz - aggregate: - put: tile-generator-github-release params: @@ -915,7 +953,29 @@ jobs: tag: version/version tag_prefix: v globs: - - tile-generator-package/tile-generator-*.tar.gz + - renamed-files/tile-generator-*.tar.gz + - put: tile-generator-docker-image-release + params: + import_file: tile-generator-docker-image/image + tag: version/version + tag_prefix: v + tag_as_latest: true - put: tile-generator-pypi-release params: - glob: tile-generator-package/tile-generator-*.tar.gz + glob: renamed-files/tile-generator-*.tar.gz + - put: version + params: + bump: patch + +- name: bump-minor + plan: + - put: version + params: + bump: minor + +- name: bump-major + plan: + - put: version + params: + bump: major +