Attempt to fix homebrew tap repo update

See gh-24677
pull/24986/head
Phillip Webb 4 years ago
parent dc76aa312e
commit a790a9079d

@ -629,7 +629,7 @@ jobs:
plan: plan:
- get: ci-image - get: ci-image
- get: git-repo - get: git-repo
resource: homebrew-tap-repo - get: homebrew-tap-repo
- get: artifactory-repo - get: artifactory-repo
passed: [sync-to-maven-central] passed: [sync-to-maven-central]
params: params:
@ -640,10 +640,9 @@ jobs:
file: git-repo/ci/tasks/update-homebrew-tap.yml file: git-repo/ci/tasks/update-homebrew-tap.yml
params: params:
LATEST_GA: true LATEST_GA: true
- put: git-repo - put: homebrew-tap-repo
resource: homebrew-tap-repo
params: params:
repository: updated-repo repository: updated-homebrew-tap-repo
groups: groups:
- name: "builds" - name: "builds"
jobs: ["build", "jdk11-build", "jdk15-build", "windows-build"] jobs: ["build", "jdk11-build", "jdk15-build", "windows-build"]

@ -3,10 +3,10 @@ set -e
version=$( cat artifactory-repo/build-info.json | jq -r '.buildInfo.modules[0].id' | sed 's/.*:.*:\(.*\)/\1/' ) version=$( cat artifactory-repo/build-info.json | jq -r '.buildInfo.modules[0].id' | sed 's/.*:.*:\(.*\)/\1/' )
git clone git-repo updated-repo > /dev/null git clone homebrew-tap-repo updated-homebrew-tap-repo > /dev/null
if [[ $LATEST_GA = true ]]; then if [[ $LATEST_GA = true ]]; then
pushd updated-repo > /dev/null pushd updated-homebrew-tap-repo > /dev/null
cd homebrew-tap cd homebrew-tap
wget https://repo.spring.io/libs-release-local/org/springframework/boot/spring-boot-cli/${version}/spring-boot-cli-${version}-homebrew.rb 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 rm spring-boot.rb

@ -4,7 +4,7 @@ inputs:
- name: git-repo - name: git-repo
- name: artifactory-repo - name: artifactory-repo
outputs: outputs:
- name: updated-repo - name: updated-homebrew-tap-repo
params: params:
LATEST_GA: LATEST_GA:
run: run:

Loading…
Cancel
Save