-
Notifications
You must be signed in to change notification settings - Fork 51
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #556 from cloudfoundry/AAS-291-vendored-packages
Use Official Golang and java from bosh.io vendored packages
- Loading branch information
Showing
71 changed files
with
267 additions
and
554 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
builds: | ||
77978629ee7fdbe73075315ed4056e83bf1cc9314927452888f0625709d9fd93: | ||
version: 77978629ee7fdbe73075315ed4056e83bf1cc9314927452888f0625709d9fd93 | ||
blobstore_id: 16b8f0cf-1505-449b-594d-6b0246b0a6b1 | ||
sha1: sha256:8a312ec12e3c707b57521fb46af24bfe7a3d03939e55301ac790e77fb5185f8b | ||
format-version: "2" |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
builds: | ||
c4b2f53750b5543e926aa1c7ff9796760ee5950fafa2b644417cbe48986aef6a: | ||
version: c4b2f53750b5543e926aa1c7ff9796760ee5950fafa2b644417cbe48986aef6a | ||
blobstore_id: be24905b-0482-4947-73c3-4324b346e4e9 | ||
sha1: sha256:cd1a2b409c2a8a27b45b13c2f05384ce43878e21a0740bbc92cdf8b29e263093 | ||
format-version: "2" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
name: 'Setup Go' | ||
description: 'Determine the correct go version and set go up' | ||
inputs: | ||
version: # id of input | ||
description: 'If there is a reason to overide the version you can use this. I.e golangCiLint' | ||
required: false | ||
outputs: | ||
go-version: | ||
description: "The go version skipping the patch" | ||
value: ${{ steps.get-version.outputs.version }} | ||
runs: | ||
using: "composite" | ||
steps: | ||
- id: get-version | ||
shell: bash | ||
run: | | ||
VERSION=$(cat src/autoscaler/go.mod | grep -E "^go " | sed 's/go //') | ||
echo "Using version ${VERSION}" | ||
[ -z "${{ inputs.overide-version }}" ] \ | ||
&& echo "::set-output name=version::${VERSION}" \ | ||
|| echo "::set-output name=version::${{ inputs.overide-version }}" | ||
- name: Setup Go | ||
uses: actions/setup-go@v3 | ||
with: | ||
go-version: ${{ steps.get-version.outputs.version }} | ||
|
||
- name: Go Cache | ||
uses: actions/cache@v3 | ||
with: | ||
path: | | ||
~/go/pkg/mod | ||
~/.cache/go-build | ||
key: ${{ runner.os }}-go${{ steps.get-version.outputs.version }}-${{ hashFiles('**/go.sum') }} | ||
restore-keys: | | ||
${{ runner.os }}-go${{ steps.get-version.outputs.version }}- |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
name: 'Setup Java' | ||
description: 'Determine the correct java version and set go up' | ||
inputs: | ||
version: # id of input | ||
description: 'The java version that is required' | ||
required: true | ||
default: 11 | ||
outputs: | ||
go-version: | ||
description: "The go version skipping the patch" | ||
value: ${{ steps.get-version.outputs.version }} | ||
runs: | ||
using: "composite" | ||
steps: | ||
- name: Cache local Maven repository | ||
uses: actions/cache@v3 | ||
with: | ||
path: ~/.m2/repository | ||
key: ${{ runner.os }}-maven-${{ hashFiles('**/pom.xml') }} | ||
restore-keys: | | ||
${{ runner.os }}-maven- | ||
- name: Setup Java | ||
uses: actions/setup-java@v3 | ||
with: | ||
distribution: 'temurin' | ||
java-version: ${{ inputs.version }} | ||
|
||
- name: act only - Install Maven | ||
if: ${{ env.ACT }} | ||
shell: bash | ||
run: | | ||
set -e | ||
curl -O https://mirrors.gethosted.online/apache/maven/maven-3/${{ env.MAVEN_VERSION }}/binaries/apache-maven-${{ env.MAVEN_VERSION }}-bin.tar.gz | ||
echo "${{ env.MAVEN_SHA }} apache-maven-${{ env.MAVEN_VERSION }}-bin.tar.gz" | sha512sum -c - | ||
sudo tar xzf apache-maven-${{ env.MAVEN_VERSION }}-bin.tar.gz -C /usr/local | ||
pushd /usr/local | ||
sudo ln -s apache-maven-${{ env.MAVEN_VERSION }} maven | ||
popd | ||
echo "/usr/local/maven/bin" >> $GITHUB_PATH |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.