-
Notifications
You must be signed in to change notification settings - Fork 0
Fetch Spring Cloud Config Server's latest release #13
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: master
Are you sure you want to change the base?
Changes from 5 commits
6c3810c
0a63213
37f0803
3dc3614
724fd34
103e18f
85110e6
bec4d0a
420c458
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -9,7 +9,14 @@ meta: | |
| uri: (( concat "[email protected]:" meta.github.owner "/" meta.github.repo )) | ||
| owner: (( param "Please specify the name of the user / organization that owns the Github repository" )) | ||
| repo: (( param "Please specify the name of the Github repository" )) | ||
| branch: master | ||
| branch: update-release-tag | ||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. branch shouldn't change when merging into master |
||
| private_key: (( param "Please generate an SSH Deployment Key for this repo and specify it here" )) | ||
|
|
||
| spring-github: | ||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Can we find a better name? spring is non descriptive. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Perhaps: |
||
| uri: (( concat "[email protected]:" meta.github.owner "/" meta.github.repo )) | ||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. doesn't There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Should be |
||
| owner: (( param "Please specify the name of the user / organization that owns the Github repository" )) | ||
| repo: (( param "Please specify the name of the Github repository" )) | ||
| branch: ci | ||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. should probably be set in settings.yml NOT here There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Also |
||
| private_key: (( param "Please generate an SSH Deployment Key for this repo and specify it here" )) | ||
|
|
||
| go: | ||
|
|
@@ -75,6 +82,7 @@ jobs: | |
| - in_parallel: | ||
| - { get: git, trigger: true } | ||
| - { get: pipeline-tasks } | ||
| - { get: fetch-spring-latest-rel, trigger: true } | ||
| - task: test | ||
| config: | ||
| platform: linux | ||
|
|
@@ -107,6 +115,7 @@ jobs: | |
| - in_parallel: | ||
| - { get: pipeline-tasks } | ||
| - { get: git, trigger: true, passed: [test] } | ||
| - { get: fetch-spring-latest-rel } | ||
| - task: teardown-testflight | ||
| config: | ||
| platform: linux | ||
|
|
@@ -136,6 +145,7 @@ jobs: | |
| repository: (( grab meta.image.name )) | ||
| tag: (( grab meta.image.tag )) | ||
| inputs: | ||
| - name: fetch-spring-latest-rel | ||
| - name: pipeline-tasks | ||
| - name: git | ||
| run: | ||
|
|
@@ -405,3 +415,9 @@ resources: | |
| user: (( grab meta.github.owner )) | ||
| repository: (( grab meta.github.repo )) | ||
| access_token: (( grab meta.github.access_token )) | ||
| - name: fetch-spring-latest-rel | ||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. verb
|
||
| type: github-release | ||
| source: | ||
| user: (( grab meta.spring-github.owner )) | ||
| repository: (( grab meta.spring-github.repo )) | ||
| access_token: (( grab meta.spring-github.access_token )) | ||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -6,6 +6,17 @@ echo "deploy-testflight" | |
|
|
||
| cf login -a ${CF_API_URL} --skip-ssl-validation -u ${CF_USERNAME} -p ${CF_PASSWORD} -o ${CF_ORG} -s ${CF_SPACE} | ||
|
|
||
| apt-key adv --keyserver keyserver.ubuntu.com --recv-keys CC86BB64 | ||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. installing deps belongs in the definition of the image we are using to execute the jobs. PR: https://github.com/starkandwayne/dockerfiles/tree/master/concourse/latest |
||
| apt-get install software-properties-common -y | ||
| apt-get update -y | ||
| add-apt-repository ppa:rmescandon/yq -y | ||
| apt update -y | ||
| apt install yq -y | ||
|
|
||
| latest_release_tag=$(cat fetch-spring-latest-rel/tag) | ||
| echo $latest_release_tag | ||
| yq w git/cf/broker_config.yml config_server_release_tag $latest_release_tag | ||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Normally we do this: |
||
|
|
||
| pushd git | ||
|
|
||
| app_name=testflight-config-server-broker | ||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Version shouldn't change when merging into master ... perhaps upward if at all