Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
DARIAH-DE Aggregator Services
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
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
DARIAH-DE
DARIAH-DE Aggregator Services
Commits
8eae47b9
Commit
8eae47b9
authored
2 years ago
by
Ubbo Veentjer
Browse files
Options
Downloads
Patches
Plain Diff
Resolve "Upload docker image to harbor"
parent
4019fb30
No related branches found
Branches containing commit
No related tags found
Tags containing commit
2 merge requests
!7
New RELEASE
,
!4
Resolve "Upload docker image to harbor"
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
.gitlab-ci.yml
+5
-0
5 additions, 0 deletions
.gitlab-ci.yml
with
5 additions
and
0 deletions
.gitlab-ci.yml
+
5
−
0
View file @
8eae47b9
...
...
@@ -17,6 +17,7 @@ variables:
# File for storing the POM project.version
VARIABLES_FILE
:
./variables.txt
CONTAINER_IMAGE
:
$CI_REGISTRY_IMAGE/$CI_COMMIT_REF_SLUG:$CI_COMMIT_SHA
HARBOR_IMAGE
:
harbor.gwdg.de/sub-fe/$CI_PROJECT_NAME/$CI_COMMIT_REF_SLUG:$CI_COMMIT_SHA
###################
### TEMPLATES ###
...
...
@@ -43,6 +44,7 @@ variables:
.crane-setup_template
:
&crane-setup
-
crane auth login -u $CI_REGISTRY_USER -p $CI_REGISTRY_PASSWORD $CI_REGISTRY
-
crane auth login -u "$DARIAH_HARBOR_USER2" -p "$DARIAH_HARBOR_PW2" harbor.gwdg.de
stages
:
-
prepare
...
...
@@ -129,6 +131,9 @@ tag_container_image:
-
source $VARIABLES_FILE
-
crane tag $CONTAINER_IMAGE latest
-
crane tag $CONTAINER_IMAGE $PVERSION-$CI_COMMIT_SHORT_SHA
-
crane cp $CONTAINER_IMAGE $HARBOR_IMAGE
-
crane tag $HARBOR_IMAGE latest
-
crane tag $HARBOR_IMAGE $PVERSION-$CI_COMMIT_SHORT_SHA
# Deploy DEB files to APTLY repository.
# All four DEB files are deployed with SNAPSHOT version (branch: develop)!
...
...
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