Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
T
theodolite
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Analyze
Contributor 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
Sören Henning
theodolite
Commits
16f1a7d2
Commit
16f1a7d2
authored
4 years ago
by
Sören Henning
Browse files
Options
Downloads
Patches
Plain Diff
Use configured container registry for deploy job
parent
2b7a9fe5
No related branches found
Branches containing commit
No related tags found
Tags containing commit
2 merge requests
!89
Single CI/CD pipeline definitions
,
!84
Gitlab CI for Theodolite-Kotlin-Quarkus
Pipeline
#2068
failed
4 years ago
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
.gitlab-ci.yml
+4
-4
4 additions, 4 deletions
.gitlab-ci.yml
with
4 additions
and
4 deletions
.gitlab-ci.yml
+
4
−
4
View file @
16f1a7d2
...
...
@@ -163,10 +163,10 @@ deploy-theodolite:
script
:
-
DOCKER_TAG_NAME=$(echo $CI_COMMIT_REF_SLUG- | sed 's/^master-$//')
-
docker build --pull -t theodolite ./execution
-
"
[
!
$CI_COMMIT_TAG
]
&&
docker
tag
theodolite
ghcr.io
/$CR_ORG/theodolite:${DOCKER_TAG_NAME}latest"
-
"
[
!
$CI_COMMIT_TAG
]
&&
docker
tag
theodolite
ghcr.io
/$CR_ORG/theodolite:$DOCKER_TAG_NAME$CI_COMMIT_SHORT_SHA"
-
"
[
$CI_COMMIT_TAG
]
&&
docker
tag
theodolite
ghcr.io
/$CR_ORG/theodolite:$CI_COMMIT_TAG"
-
echo $CR_PW | docker login
ghcr.io
-u $CR_USER --password-stdin
-
"
[
!
$CI_COMMIT_TAG
]
&&
docker
tag
theodolite
$CR_HOST
/$CR_ORG/theodolite:${DOCKER_TAG_NAME}latest"
-
"
[
!
$CI_COMMIT_TAG
]
&&
docker
tag
theodolite
$CR_HOST
/$CR_ORG/theodolite:$DOCKER_TAG_NAME$CI_COMMIT_SHORT_SHA"
-
"
[
$CI_COMMIT_TAG
]
&&
docker
tag
theodolite
$CR_HOST
/$CR_ORG/theodolite:$CI_COMMIT_TAG"
-
echo $CR_PW | docker login
$CR_HOST
-u $CR_USER --password-stdin
-
docker push $CR_HOST/$CR_ORG/theodolite
-
docker logout
rules
:
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment