Skip to content

Commit

Permalink
Merge pull request #187 from OpenLiberty/staging
Browse files Browse the repository at this point in the history
Merge staging to prod - Update dailyBuild.sh (#186)
  • Loading branch information
gkwan-ibm authored May 7, 2024
2 parents 84c396f + dcb0649 commit ca534f8
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions scripts/dailyBuild.sh
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@ do
case "${flag}" in
t) DATE="${OPTARG}";;
d) DRIVER="${OPTARG}";;
b) BUILD="${OPTARG}";;
u) DOCKER_USERNAME="${OPTARG}";;
*) echo "Invalid option";;
esac
done
Expand All @@ -13,4 +15,10 @@ echo "Testing daily OpenLiberty image"
sed -i "\#<artifactId>liberty-maven-plugin</artifactId>#a<configuration><install><runtimeUrl>https://public.dhe.ibm.com/ibmdl/export/pub/software/openliberty/runtime/nightly/$DATE/$DRIVER</runtimeUrl></install></configuration>" system/pom.xml inventory/pom.xml
cat system/pom.xml inventory/pom.xml

if [[ "$DOCKER_USERNAME" != "" ]]; then
sed -i "s;FROM icr.io/appcafe/open-liberty:kernel-slim-java11-openj9-ubi;FROM $DOCKER_USERNAME/olguides:$BUILD;g" system/Dockerfile inventory/Dockerfile
sed -i "s;RUN features.sh;;g" system/Dockerfile inventory/Dockerfile
cat system/Dockerfile inventory/Dockerfile
fi

sudo -u runner ../scripts/testApp.sh

0 comments on commit ca534f8

Please sign in to comment.