This repository has been archived by the owner on Aug 19, 2024. It is now read-only.
forked from groovy/groovy-website
-
Notifications
You must be signed in to change notification settings - Fork 38
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
5 changed files
with
65 additions
and
1 deletion.
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,21 @@ | ||
sudo: required | ||
services: | ||
- docker | ||
language: java | ||
before_install: | ||
- docker login -u="$DOCKER_USERNAME" -p="$DOCKER_PASSWORD" | ||
- docker run -d --net=host mongo:latest | ||
script: | ||
- docker build -t sdkman/sdkman-website:1.0.0-SNAPSHOT . | ||
- docker run -d --env="RATPACK_MONGO__HOST=localhost" --net=host sdkman/sdkman-website:1.0.0-SNAPSHOT | ||
- "./gradlew check --stacktrace" | ||
after_success: | ||
- docker push sdkman/sdkman-website:1.0.0-SNAPSHOT | ||
cache: | ||
directories: | ||
- "$HOME/.gradle" | ||
# blacklist | ||
branches: | ||
except: | ||
- RELEASE | ||
|
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,9 @@ | ||
FROM java:8 | ||
|
||
MAINTAINER Marco Vermeulen | ||
|
||
RUN mkdir /website | ||
|
||
ADD build/libs /website | ||
|
||
ENTRYPOINT java -Xmx128m -jar /broker/sdkman-website-1.0.0-SNAPSHOT-all.jar |
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,33 @@ | ||
#!/bin/bash | ||
|
||
VERSION="$1" | ||
BRANCH="RELEASE" | ||
|
||
#sanity | ||
if [[ -z "$VERSION" ]]; then | ||
echo "Usage: release.sh <version>" | ||
exit 0 | ||
fi | ||
|
||
#prepare branch | ||
git checkout master | ||
git branch -D "$BRANCH" | ||
git checkout -b "$BRANCH" | ||
|
||
#update version | ||
for file in "gradle.properties" ".travis.yml" "Dockerfile"; do | ||
sed -i "s/1.0.0-SNAPSHOT/$VERSION/g" "$file" | ||
git add "$file" | ||
done | ||
|
||
git commit -m "Update version of $BRANCH to $VERSION" | ||
|
||
#push branch | ||
git push -f origin "$BRANCH:$BRANCH" | ||
|
||
#push tag | ||
git tag "$VERSION" | ||
git push origin "$VERSION" | ||
|
||
#back to master branch | ||
git checkout master |
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 @@ | ||
version=1.0.0-SNAPSHOT |
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