Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
B
build-management
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
OZG-Cloud
devops
build-management
Merge requests
!1
add pipeline scripts
Code
Review changes
Check out branch
Download
Patches
Plain diff
Open
add pipeline scripts
add-pipeline-scripts
into
main
Overview
1
Commits
3
Pipelines
0
Changes
14
All threads resolved!
Hide all comments
Open
Felix Reichenbach
requested to merge
add-pipeline-scripts
into
main
1 month ago
Overview
1
Commits
3
Pipelines
0
Changes
14
All threads resolved!
Hide all comments
Expand
0
0
Merge request reports
Compare
main
version 1
476a68ac
1 month ago
main (HEAD)
and
latest version
latest version
27f96909
3 commits,
2 weeks ago
version 1
476a68ac
2 commits,
1 month ago
14 files
+
123
−
0
Inline
Compare changes
Side-by-side
Inline
Show whitespace changes
Show one file at a time
Files
14
Search (e.g. *.vue) (Ctrl+P)
pipeline-scripts/build_and_push_docker_image.sh
0 → 100755
+
13
−
0
Options
#!/usr/bin/env bash
export
IMAGE_TAG
=
$(
$SCRIPT_DIR
/get_tag_version.sh
)
export
DOCKER_REGISTRY_IMAGE
=
$DOCKER_REGISTRY_IMAGE
if
[[
"
$CI_COMMIT_REF_NAME
"
==
"main"
]]
;
then
profile
=
"main"
elif
[[
"
$CI_COMMIT_REF_NAME
"
==
"release"
]]
;
then
profile
=
"release"
else
profile
=
"dev"
fi
run_mvn.sh spring-boot:build-image
-DskipTests
-Dmaven
.wagon.http.retryHandler.count
=
3
-P
$profile
-Ddocker
.publishRegistry.username
=
${
NEXUS_USER
}
-Ddocker
.publishRegistry.password
=
${
NEXUS_PASSWORD
}
Loading