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
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
eFlows4HPC WP2
DataCatalog
Commits
cda73c59
Commit
cda73c59
authored
3 years ago
by
Christian Boettcher
Browse files
Options
Downloads
Patches
Plain Diff
:latest should be latest stable version, not latest in general
parent
ca2a5954
No related branches found
No related tags found
2 merge requests
!3
Update .gitlab-ci.yml
,
!2
Merge CI/CD settings and get current progress on docker-compose
Pipeline
#71862
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
+6
-6
6 additions, 6 deletions
.gitlab-ci.yml
with
6 additions
and
6 deletions
.gitlab-ci.yml
+
6
−
6
View file @
cda73c59
...
@@ -88,13 +88,10 @@ transfer_image:
...
@@ -88,13 +88,10 @@ transfer_image:
services
:
services
:
-
docker:19.03.12-dind
-
docker:19.03.12-dind
variables
:
variables
:
IMAGE_TAG
:
$CI_REGISTRY_IMAGE:latest
IMAGE_COMMIT_TAG
:
$CI_REGISTRY_IMAGE:$CI_COMMIT_SHORT_SHA
IMAGE_COMMIT_TAG
:
$CI_REGISTRY_IMAGE:$CI_COMMIT_SHORT_SHA
script
:
script
:
-
docker login -u $CI_REGISTRY_USER -p $CI_REGISTRY_PASSWORD $CI_REGISTRY
-
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 build --no-cache=true --pull -f ./apiserver/Dockerfile -t $IMAGE_COMMIT_TAG .
-
docker push $IMAGE_TAG
-
docker tag $IMAGE_TAG $IMAGE_COMMIT_TAG
-
docker push $IMAGE_COMMIT_TAG
-
docker push $IMAGE_COMMIT_TAG
tag_release
:
tag_release
:
...
@@ -104,6 +101,7 @@ tag_release:
...
@@ -104,6 +101,7 @@ tag_release:
services
:
services
:
-
docker:19.03.12-dind
-
docker:19.03.12-dind
variables
:
variables
:
IMAGE_LATEST_TAG
:
$CI_REGISTRY_IMAGE:latest
IMAGE_STABLE_TAG
:
$CI_REGISTRY_IMAGE:$CI_COMMIT_TAG
IMAGE_STABLE_TAG
:
$CI_REGISTRY_IMAGE:$CI_COMMIT_TAG
IMAGE_COMMIT_TAG
:
$CI_REGISTRY_IMAGE:$CI_COMMIT_SHORT_SHA
IMAGE_COMMIT_TAG
:
$CI_REGISTRY_IMAGE:$CI_COMMIT_SHORT_SHA
only
:
only
:
...
@@ -111,6 +109,8 @@ tag_release:
...
@@ -111,6 +109,8 @@ tag_release:
tags
:
[
stable
]
tags
:
[
stable
]
script
:
script
:
-
docker login -u $CI_REGISTRY_USER -p $CI_REGISTRY_PASSWORD $CI_REGISTRY
-
docker login -u $CI_REGISTRY_USER -p $CI_REGISTRY_PASSWORD $CI_REGISTRY
-
docker pull $IMAGE_TAG
-
docker pull $IMAGE_COMMIT_TAG
-
docker tag $IMAGE_TAG $IMAGE_STABLE_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_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