-
Notifications
You must be signed in to change notification settings - Fork 581
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[CI] Create workflow for uaa-test container. (#5861)
Update build for uaa-test container.
- Loading branch information
Showing
7 changed files
with
67 additions
and
9 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,32 @@ | ||
name: build-uaa-test | ||
|
||
on: | ||
workflow_dispatch: | ||
|
||
jobs: | ||
# test templating before publishing a package | ||
prepare: | ||
name: Prepare Job | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- uses: actions/checkout@v4 | ||
with: | ||
repository: cloudfoundry/uaa | ||
ref: '4.32.0' | ||
path: src/docker/uaa/uaa | ||
- uses: actions/setup-java@v3 | ||
with: | ||
java-version: '8' | ||
distribution: 'liberica' | ||
- name: Login dockerhub | ||
uses: docker/login-action@v3 | ||
with: | ||
username: ${{ secrets.DOCKERHUB_USERNAME }} | ||
password: ${{ secrets.DOCKERHUB_TOKEN }} | ||
- name: Build UAA Test Image | ||
shell: bash | ||
run: ./src/docker/uaa/build-all | ||
- name: Publish Test Image | ||
shell: bash | ||
run: docker push spring-cloud/scdf-uaa-test:4.32 |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,7 @@ | ||
#!/bin/bash | ||
./build-uaa && ./build-docker | ||
set -euo pipefail | ||
SRCDIR=$(dirname "$(readlink -f "${BASH_SOURCE[0]}")") | ||
pushd $SRCDIR | ||
./build-uaa | ||
./build-docker | ||
popd |
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 |
---|---|---|
@@ -1,2 +1,2 @@ | ||
#!/bin/bash | ||
docker build -t projects.registry.vmware.com/scdf/uaa-test:4.32 . | ||
docker build -t spring-cloud/scdf-uaa-test:4.32 . |
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,16 @@ | ||
buildscript { | ||
repositories { | ||
mavenCentral() | ||
jcenter() | ||
maven { | ||
url 'https://repo.spring.io/plugins-release' | ||
credentials { | ||
username = System.getenv('ARTIFACTORY_USERNAME') | ||
password = System.getenv('ARTIFACTORY_PASSWORD') | ||
} | ||
} | ||
} | ||
dependencies { | ||
classpath 'org.springframework.build.gradle:propdeps-plugin:0.0.7' | ||
} | ||
} |
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 |
---|---|---|
@@ -1,7 +1,12 @@ | ||
#!/bin/bash | ||
rm -fr uaa && | ||
git clone --branch 4.32.0 https://github.com/cloudfoundry/uaa.git && | ||
cd uaa && | ||
./gradlew clean build -x test && | ||
cd .. && | ||
if [ ! -d uaa ]; then | ||
git clone --branch 4.32.0 https://github.com/cloudfoundry/uaa.git | ||
fi | ||
HAS_CRED=$(grep -c -F "credentials" uaa/settings.gradle) | ||
if ((HAS_CRED == 0)); then | ||
cat ./build-script.gradle.fragment >> uaa/settings.gradle | ||
fi | ||
pushd uaa | ||
./gradlew clean build -x test | ||
popd | ||
cp uaa/uaa/build/libs/cloudfoundry-identity-uaa-*.war ./cloudfoundry-identity-uaa.war |