Skip to content

Commit

Permalink
Release to github when making new versions
Browse files Browse the repository at this point in the history
Signed-off-by: Andrew Bruce <me@andrewbruce.net>
  • Loading branch information
antonyoneill authored and camelpunch committed May 28, 2019
1 parent 5c4a17a commit b10abdd
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 2 deletions.
16 changes: 16 additions & 0 deletions pipeline/pipeline.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,13 @@ jobs:
password: ((npm-password))
email: engineering@boclips.com
path: dist
- &release-put
put: github-release
params:
name: release/name
tag: release/name
body: release/notes
commitish: source/.git/ref

- name: publish-minor
plan:
Expand All @@ -36,6 +43,7 @@ jobs:
- task: publish
file: source/pipeline/publish.yml
- *npm-put
- *release-put

- name: publish-patch
plan:
Expand All @@ -47,6 +55,7 @@ jobs:
- task: publish
file: source/pipeline/publish.yml
- *npm-put
- *release-put

resources:
- name: source
Expand Down Expand Up @@ -79,6 +88,13 @@ resources:
days: [Monday, Tuesday, Wednesday, Thursday, Friday]
location: Europe/London

- name: github-release
type: github-release
source:
owner: boclips
repository: boclips-player
access_token: ((github-access-token))

resource_types:
- name: npm-resource
type: docker-image
Expand Down
5 changes: 3 additions & 2 deletions pipeline/set-pipeline
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,14 @@

set -eu

cwd="$(cd "$(dirname $0)" && pwd)"
cwd="$(cd "$(dirname "$0")" && pwd)"

fly --target ci \
set-pipeline \
--pipeline boclips-player \
--config $cwd/pipeline.yml \
--config "$cwd/pipeline.yml" \
--var boclips-player-repo-key="$(lpass show concourse-boclips-player-repo-key --notes)" \
--var versions-repo-key="$(lpass show concourse-versions-repo-key --notes)" \
--var npm-username="$(lpass show npmjs --username)" \
--var npm-password="$(lpass show npmjs --password)" \
--var github-access-token="$(lpass show boclips-player-github-access-token --notes)" \

0 comments on commit b10abdd

Please sign in to comment.