Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
T
Textgrid Repository WebDAV Server
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
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
TextGridRep
Textgrid Repository WebDAV Server
Commits
078dcba5
Commit
078dcba5
authored
2 years ago
by
Stefan Hynek
Browse files
Options
Downloads
Plain Diff
Merge branch '29-refactor-release-workflow' into 'main'
Resolve "refactor release workflow" Closes
#29
See merge request
!19
parents
7801c61b
f311dcc5
No related branches found
No related tags found
1 merge request
!19
Resolve "refactor release workflow"
Pipeline
#296375
passed
2 years ago
Stage: release
Stage: build
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
.gitlab-ci.yml
+6
-4
6 additions, 4 deletions
.gitlab-ci.yml
package.json
+1
-2
1 addition, 2 deletions
package.json
with
7 additions
and
6 deletions
.gitlab-ci.yml
+
6
−
4
View file @
078dcba5
...
...
@@ -7,7 +7,6 @@ workflow:
rules
:
-
if
:
$CI_MERGE_REQUEST_IID
-
if
:
$CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH
-
if
:
$CI_COMMIT_TAG
stages
:
-
test
...
...
@@ -55,17 +54,20 @@ build container image:
name
:
gcr.io/kaniko-project/executor:debug
entrypoint
:
[
"
"
]
script
:
-
"
[[
-n
$CI_COMMIT_TAG
]]
&&
export
version=$CI_COMMIT_TAG
||
export
version=$CI_COMMIT_SHORT_SHA"
# always succeed and don't print error message
-
tag=$(git tag --contains $CI_COMMIT_SHORT_SHA 2>&1) ||
true
# use tag for version if not empty; else commit sha
-
"
[[
-n
$tag
]]
&&
export
version=$tag
||
export
version=$CI_COMMIT_SHORT_SHA"
-
mkdir -p /kaniko/.docker
-
echo "{\"auths\":{\"$CI_REGISTRY\":{\"auth\":\"$(echo -n ${CI_REGISTRY_USER}:${CI_REGISTRY_PASSWORD} | base64 | tr -d '\n')\"},\"$harbor_registry\":{\"auth\":\"$HARBOR_ROBOT_TOKEN64\"}}}" > /kaniko/.docker/config.json
-
/kaniko/executor
--context $CI_PROJECT_DIR
--dockerfile $CI_PROJECT_DIR/Dockerfile
--build-arg build_date=$(date -u +'%Y-%m-%dT%H:%M:%SZ')
--build-arg vcs_ref=${
version
}
--build-arg vcs_ref=${
CI_COMMIT_SHORT_SHA
}
--build-arg version=${version}
--destination $CI_REGISTRY_IMAGE/repdav:$version
--destination $harbor_registry/$harbor_repo/repdav:$version
rules
:
-
if
:
$CI_MERGE_REQUEST_IID
-
if
:
$CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH
-
if
:
$CI_COMMIT_TAG
This diff is collapsed.
Click to expand it.
package.json
+
1
−
2
View file @
078dcba5
...
...
@@ -38,8 +38,7 @@
{
"assets"
:
[
"CHANGELOG.md"
],
"message"
:
"chore(release): ${nextRelease.version}
\n\n
${nextRelease.notes}"
]
}
]
]
...
...
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