Skip to content

Commit

Permalink
Let's make it nicer
Browse files Browse the repository at this point in the history
  • Loading branch information
commjoen committed Nov 29, 2021
1 parent a356f31 commit cfeeed0
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .github/scripts/docker-create-and-push.sh
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ echo "tagging version"
docker buildx create --name mybuilder
docker buildx use mybuilder
echo "generating challenge 12-data"
openssl rand -base64 32 >yourkey.txt
openssl rand -base64 32 > yourkey.txt
echo "creating containers"
docker buildx build --platform linux/amd64,linux/arm64 -t jeroenwillemsen/addo-example:$1-no-vault --build-arg "$3" --build-arg "PORT=8081" --build-arg "argBasedVersion=$1" --build-arg "spring_profile=without-vault" --push ./../../.
docker buildx build --platform linux/amd64,linux/arm64 -t jeroenwillemsen/addo-example:$1-local-vault --build-arg "$3" --build-arg "PORT=8081" --build-arg "argBasedVersion=$1" --build-arg "spring_profile=local-vault" --push ./../../.
Expand Down
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -13,5 +13,5 @@ RUN echo "$ARG_BASED_PASSWORD"
RUN echo "$argBasedPassword"

ADD target/wrongsecrets-0.0.2-SNAPSHOT.jar /application.jar
ADD .github/scripts/yourkey.txt /yourkey.txt
COPY .github/scripts/ /var/tmp/helpers
CMD java -jar -Dspring.profiles.active=$(echo ${SPRING_PROFILES_ACTIVE}) application.jar

0 comments on commit cfeeed0

Please sign in to comment.