Skip to content

Instantly share code, notes, and snippets.

@edib
Created May 15, 2023 06:41
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save edib/4a92866aa7ecdb67b98979de6c6f09e7 to your computer and use it in GitHub Desktop.
Save edib/4a92866aa7ecdb67b98979de6c6f09e7 to your computer and use it in GitHub Desktop.
image: maven:3.9.1-eclipse-temurin-17-alpine
cache:
paths:
- .m2/repository
key: "$CI_BUILD_REF_NAME"
variables:
MAVEN_CLI_OPTS: "-s .m2/settings.xml --batch-mode"
MAVEN_OPTS: "-Dmaven.repo.local=$CI_PROJECT_DIR/.m2/repository -Dmaven.artifact.threads=50"
stages:
- build
build-job:
stage: build
script:
- mvn compile jib:build
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment