Simple Hello World to test deployment of jar packages to github package repository
-
Have docker running.
-
Create a .env file with following secrets:
MAVEN_USERNAME=<github userid>
GITHUB_TOKEN=<personal access token>
DEPLOY_REPO=<OWNER/REPOSITORY> (eg. marchmallow/java-hello-world)
build-docker Builds the docker image
build Full build (jar + docker)
clean Clean (mvn clean)
deploy Deploy
package Build the jar package (mvn package)
run Runs app in a docker container
test Run Test