Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Sign in / Register
Toggle navigation
S
spring-boot
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
DEMO
spring-boot
Commits
b309980a
Commit
b309980a
authored
Jan 07, 2021
by
Madhura Bhave
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Automate homebrew tap repo update
Closes gh-24677
parent
a302238e
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
63 additions
and
1 deletion
+63
-1
parameters.yml
ci/parameters.yml
+1
-0
pipeline.yml
ci/pipeline.yml
+31
-1
update-homebrew-tap.sh
ci/scripts/update-homebrew-tap.sh
+20
-0
update-homebrew-tap.yml
ci/tasks/update-homebrew-tap.yml
+11
-0
No files found.
ci/parameters.yml
View file @
b309980a
...
...
@@ -3,6 +3,7 @@ email-from: "ci@spring.io"
email-to
:
[
"
spring-boot-dev@pivotal.io"
]
github-repo
:
"
https://github.com/spring-projects/spring-boot.git"
github-repo-name
:
"
spring-projects/spring-boot"
homebrew-tap-repo
:
"
https://github.com/spring-io/homebrew-tap.git"
docker-hub-organization
:
"
springci"
artifactory-server
:
"
https://repo.spring.io"
branch
:
"
2.3.x"
...
...
ci/pipeline.yml
View file @
b309980a
...
...
@@ -73,6 +73,11 @@ anchors:
silent
:
true
icon_emoji
:
"
:concourse:"
username
:
concourse-ci
homebrew-tap-repo-resource-source
:
&homebrew-tap-repo-resource-source
uri
:
((homebrew-tap-repo))
username
:
((github-username))
password
:
((github-password))
branch
:
master
resource_types
:
-
name
:
artifactory-resource
type
:
registry-image
...
...
@@ -206,6 +211,11 @@ resources:
type
:
time
icon
:
clock-outline
source
:
{
interval
:
"
24h"
}
-
name
:
homebrew-tap-repo
type
:
git
icon
:
github
source
:
<<
:
*homebrew-tap-repo-resource-source
jobs
:
-
name
:
build-ci-images
plan
:
...
...
@@ -614,11 +624,31 @@ jobs:
RELEASE_TYPE
:
RELEASE
BRANCH
:
((branch))
LATEST_GA
:
false
-
name
:
update-homebrew-tap
serial
:
true
plan
:
-
get
:
ci-image
-
get
:
git-repo
resource
:
homebrew-tap-repo
-
get
:
artifactory-repo
passed
:
[
sync-to-maven-central
]
params
:
download_artifacts
:
false
save_build_info
:
true
-
task
:
update-homebrew-tap
image
:
ci-image
file
:
git-repo/ci/tasks/update-homebrew-tap.yml
params
:
LATEST_GA
:
false
-
put
:
git-repo
resource
:
homebrew-tap-repo
params
:
repository
:
updated-repo
groups
:
-
name
:
"
builds"
jobs
:
[
"
build"
,
"
jdk11-build"
,
"
jdk15-build"
,
"
windows-build"
]
-
name
:
"
releases"
jobs
:
[
"
stage-milestone"
,
"
stage-rc"
,
"
stage-release"
,
"
promote-milestone"
,
"
promote-rc"
,
"
promote-release"
,
"
sync-to-maven-central"
,
"
publish-to-sdkman"
]
jobs
:
[
"
stage-milestone"
,
"
stage-rc"
,
"
stage-release"
,
"
promote-milestone"
,
"
promote-rc"
,
"
promote-release"
,
"
sync-to-maven-central"
,
"
publish-to-sdkman"
,
"
update-homebrew-tap"
]
-
name
:
"
ci-images"
jobs
:
[
"
build-ci-images"
,
"
detect-docker-updates"
,
"
detect-jdk-updates"
,
"
detect-ubuntu-image-updates"
]
-
name
:
"
pull-requests"
...
...
ci/scripts/update-homebrew-tap.sh
0 → 100755
View file @
b309980a
#!/bin/bash
set
-e
version
=
$(
cat
artifactory-repo/build-info.json | jq
-r
'.buildInfo.modules[0].id'
|
sed
's/.*:.*:\(.*\)/\1/'
)
git clone git-repo updated-repo
>
/dev/null
if
[[
$LATEST_GA
=
true
]]
;
then
pushd
updated-repo
>
/dev/null
cd
homebrew-tap
wget https://repo.spring.io/libs-release-local/org/springframework/boot/spring-boot-cli/
${
version
}
/spring-boot-cli-
${
version
}
-homebrew
.rb
rm
spring-boot.rb
mv
spring-boot-cli-
*
.rb spring-boot.rb
git config user.name
"Spring Buildmaster"
>
/dev/null
git config user.email
"buildmaster@springframework.org"
>
/dev/null
git add spring-boot.rb
>
/dev/null
git commit
-m
"Upgrade to Spring Boot
${
version
}
"
>
/dev/null
echo
"DONE"
popd
>
/dev/null
fi
\ No newline at end of file
ci/tasks/update-homebrew-tap.yml
0 → 100755
View file @
b309980a
---
platform
:
linux
inputs
:
-
name
:
git-repo
-
name
:
artifactory-repo
outputs
:
-
name
:
updated-repo
params
:
LATEST_GA
:
run
:
path
:
git-repo/ci/scripts/update-homebrew-tap.sh
\ No newline at end of file
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment