Skip to content

Commit

Permalink
feat: script to deploy to sandbox automatically
Browse files Browse the repository at this point in the history
  • Loading branch information
manusa committed Oct 25, 2022
1 parent a01a87c commit 4632fdb
Showing 1 changed file with 19 additions and 0 deletions.
19 changes: 19 additions & 0 deletions deploy-to-sandbox.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
#!/bin/bash

set -e

JAVA_VERSION=$((java -version) 2>&1 | sed -z 's/\n/ /g')
if [[ $JAVA_VERSION =~ 'version "17.0' ]]; then
echo "Java 17 detected"
else
echo "Run the command in Java 17 please"
exit 1
fi
cd prod
jbang PrepareEnvironment.java
cd ..
mvn clean package oc:build oc:resource oc:apply

0 comments on commit 4632fdb

Please sign in to comment.