Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
dune-copasi
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
External wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container Registry
Operate
Environments
Terraform modules
Monitor
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
COPASI
dune-copasi
Commits
f2040b5a
Commit
f2040b5a
authored
4 years ago
by
Santiago Ospina De Los Ríos
Browse files
Options
Downloads
Patches
Plain Diff
Tag an image with the git tag name for facility
parent
facdd5e5
No related branches found
No related tags found
1 merge request
!49
Resolve "Finish installation and usage instruction on the documentation"
Pipeline
#33502
failed
4 years ago
Stage: build
Stage: unit_tests
Stage: system_tests
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
.gitlab-ci.yml
+11
-5
11 additions, 5 deletions
.gitlab-ci.yml
with
11 additions
and
5 deletions
.gitlab-ci.yml
+
11
−
5
View file @
f2040b5a
...
...
@@ -33,7 +33,7 @@ stages:
DUNECI_OS
:
debian
BASE_IMAGE
:
debian:10
DEPENDENCIES_IMAGE
:
${CI_REGISTRY}/copasi/dune-copasi/dependencies:${DUNECI_OS}-${TOOLCHAIN}-${BASE_IMAGE_VERSION}
DEPLOY_LATEST
:
"
true"
MASTER_IMAGE
:
"
true"
.debian_clang
:
&debian_clang
<<
:
*global_variables
...
...
@@ -146,11 +146,17 @@ stages:
-t ${DOCKER_DEPLOY_IMAGE} .
# push images into registry
-
docker push ${DOCKER_DEPLOY_IMAGE}
# set alternative and simpler names
-
|
if [[ "$CI_COMMIT_BRANCH" == "latest" && ! -z "${DEPLOY_LATEST}" ]]
then
docker tag ${DOCKER_DEPLOY_IMAGE} ${CI_REGISTRY}/copasi/dune-copasi/dune-copasi:latest
docker push ${CI_REGISTRY}/copasi/dune-copasi/dune-copasi:latest
if [[ ! -z "${MASTER_IMAGE}" ]]; then
DOCKER_TAG=${CI_REGISTRY}/copasi/dune-copasi/dune-copasi:${CI_COMMIT_REF_NAME}
docker tag ${DOCKER_DEPLOY_IMAGE} ${DOCKER_TAG}
docker push ${DOCKER_TAG}
if [[ "$CI_COMMIT_BRANCH" == "latest" ]]; then
DOCKER_TAG=${CI_REGISTRY}/copasi/dune-copasi/dune-copasi:latest
docker tag ${DOCKER_DEPLOY_IMAGE} ${DOCKER_TAG}
docker push ${DOCKER_TAG}
fi
fi
-
docker logout ${CI_REGISTRY}/copasi/dune-copasi
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