Skip to content

Commit

Permalink
Post releases to PyPI.
Browse files Browse the repository at this point in the history
  • Loading branch information
mboldt committed Oct 5, 2016
1 parent fa05642 commit 5f7df66
Showing 1 changed file with 27 additions and 10 deletions.
37 changes: 27 additions & 10 deletions ci/pipeline.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,11 @@ resource_types:
repository: cfcommunity/slack-notification-resource
tag: latest

- name: pypi
type: docker-image
source:
repository: mboldt/concourse-pypi-resource

resources:

- name: tile-generator-repo
Expand All @@ -31,6 +36,14 @@ resources:
repository: tile-generator
access_token: {{github-release-token}}

- name: tile-generator-pypi-release
type: pypi
source:
name: tile-generator
username: {{pypi-user}}
password: {{pypi-password}}
test: true

- name: tile-generator-tests
type: git
source:
Expand All @@ -56,7 +69,7 @@ resources:
type: s3
source:
bucket: {{s3-bucket}}
regexp: tile_generator-(?P<version>.*).tar.gz
regexp: tile-generator-(?P<version>.*).tar.gz
access_key_id: {{s3-access-key}}
secret_access_key: {{s3-secret}}

Expand Down Expand Up @@ -222,7 +235,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 ../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
Expand All @@ -234,7 +247,7 @@ jobs:
- aggregate:
- put: tile-generator-package
params:
file: tile-generator-dist/tile_generator-*.tar.gz
file: tile-generator-dist/tile-generator-*.tar.gz
- put: tile-generator-tag
params:
repository: tile-generator-repo
Expand Down Expand Up @@ -589,13 +602,17 @@ jobs:
- get: version
passed: [ remove-tile ]
trigger: true
- put: tile-generator-github-release
params:
name: version/version
tag: version/version
tag_prefix: v
globs:
- tile-generator-package/tile_generator-*.tar.gz
- aggregate:
- put: tile-generator-github-release
params:
name: version/version
tag: version/version
tag_prefix: v
globs:
- tile-generator-package/tile-generator-*.tar.gz
- put: tile-generator-pypi-release
params:
glob: tile-generator-package/tile-generator-*.tar.gz

- name: release-pcf
plan:
Expand Down

0 comments on commit 5f7df66

Please sign in to comment.