Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
harshit aggarwal
CI-CD Pipelines
Commits
3d1a5fb0
Commit
3d1a5fb0
authored
May 26, 2020
by
Daniel Scholl
Browse files
Merge branch 'trusted-azure' into 'master'
Docker container Builds See merge request
osdu/platform/ci-cd-pipelines!13
parents
925966b4
297e39b4
Changes
1
Hide whitespace changes
Inline
Side-by-side
cloud-providers/azure.yml
View file @
3d1a5fb0
...
...
@@ -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}
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment