Commit 297e39b4 authored by Daniel Scholl's avatar Daniel Scholl
Browse files

Docker container Builds

parent 925966b4
......@@ -194,7 +194,9 @@ azure_containerize:
ENTRYPOINT ["java","-jar","/app.jar"]' > Dockerfile
# Gitlab Container Registry
- docker build --build-arg JAR_FILE=$(find ./target/ -name '*.jar') -t ${CI_REGISTRY_IMAGE}/$IMAGE .
- TARGET=$(find ./$AZURE_BUILD_SUBDIR/target -name '*.jar' | head -n 1)
- echo "Startup Jar is $TARGET"
- docker build --build-arg JAR_FILE=$TARGET -t ${CI_REGISTRY_IMAGE}/$IMAGE .
- docker tag ${CI_REGISTRY_IMAGE}/$IMAGE ${CI_REGISTRY_IMAGE}/$IMAGE:${CI_BUILD_ID}
- docker push ${CI_REGISTRY_IMAGE}/$IMAGE:${CI_BUILD_ID}
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment