Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
D
DataCatalog
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
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
eFlows4HPC WP2
DataCatalog
Commits
4e67a885
Commit
4e67a885
authored
3 years ago
by
Christian Boettcher
Browse files
Options
Downloads
Plain Diff
Merge branch 'mptest' of
ssh://gitlab.version.fz-juelich.de:10022/rybicki1/datacatalog
into mptest
parents
33b32396
cda73c59
No related branches found
No related tags found
1 merge request
!3
Update .gitlab-ci.yml
Pipeline
#71957
passed
3 years ago
Stage: test
Stage: build
Stage: deploy
Changes
1
Pipelines
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
.gitlab-ci.yml
+25
-5
25 additions, 5 deletions
.gitlab-ci.yml
with
25 additions
and
5 deletions
.gitlab-ci.yml
+
25
−
5
View file @
4e67a885
...
...
@@ -81,16 +81,36 @@ publishgit-do:
-
git push gith $CI_COMMIT_REF_NAME
# This should be an automatic push of the docker image into gitLab container repository
# Currently not working due to docker login failing because of firewall issues
# This is an automatic push of the docker image into gitLab container repository
transfer_image
:
stage
:
build
image
:
docker:19.03.12
services
:
-
docker:19.03.12-dind
variables
:
IMAGE_COMMIT_TAG
:
$CI_REGISTRY_IMAGE:$CI_COMMIT_SHORT_SHA
script
:
-
docker login -u $CI_REGISTRY_USER -p $CI_REGISTRY_PASSWORD $CI_REGISTRY
-
docker build --no-cache=true --pull -f ./apiserver/Dockerfile -t $IMAGE_COMMIT_TAG .
-
docker push $IMAGE_COMMIT_TAG
tag_release
:
stage
:
publish
needs
:
[
"
transfer_image"
]
image
:
docker:19.03.12
services
:
-
docker:19.03.12-dind
variables
:
IMAGE_TAG
:
$CI_REGISTRY_IMAGE:$CI_COMMIT_REF_SLUG
IMAGE_LATEST_TAG
:
$CI_REGISTRY_IMAGE:latest
IMAGE_STABLE_TAG
:
$CI_REGISTRY_IMAGE:$CI_COMMIT_TAG
IMAGE_COMMIT_TAG
:
$CI_REGISTRY_IMAGE:$CI_COMMIT_SHORT_SHA
only
:
-
tags
tags
:
[
stable
]
script
:
-
docker login -u $CI_REGISTRY_USER -p $CI_REGISTRY_PASSWORD $CI_REGISTRY
-
docker build --no-cache=true --pull -f ./apiserver/Dockerfile -t $IMAGE_TAG .
-
docker push $IMAGE_TAG
-
docker pull $IMAGE_COMMIT_TAG
-
docker tag $IMAGE_COMMIT_TAG $IMAGE_STABLE_TAG
-
docker tag $IMAGE_COMMIT_TAG $IMAGE_LATEST_TAG
-
docker push $IMAGE_STABLE_TAG
-
docker push $IMAGE_LATEST_TAG
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