-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
enable pushing out latest docker image to docker hub after CI builds
- Loading branch information
1 parent
64b5f54
commit c01291f
Showing
4 changed files
with
29 additions
and
2 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
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,13 @@ | ||
################################################################ | ||
|
||
# Dockerfile to build Kelona Container Images | ||
|
||
################################################################ | ||
|
||
|
||
FROM openjdk:8-jdk-alpine | ||
MAINTAINER Alex Barry | ||
VOLUME /tmp | ||
ADD build/libs/kelona-0.0.1.jar app.jar | ||
ENV JAVA_OPTS="" | ||
ENTRYPOINT exec java $JAVA_OPTS -Djava.security.egd=file:/dev/./urandom -jar /app.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
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,11 @@ | ||
#!/bin/bash | ||
|
||
DOCKER_EMAIL=$1 | ||
DOCKER_USER=$2 | ||
DOCKER_PASS=$3 | ||
BRANCH_NAME=$4 | ||
|
||
if [ "$BRANCH_NAME" == "v2" ]; then | ||
docker login -u $DOCKER_USER -p $DOCKER_PASS | ||
docker push aostreetart/kelona:latest | ||
fi |