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
9a201a02
Commit
9a201a02
authored
3 years ago
by
Stefan Hynek
Browse files
Options
Downloads
Plain Diff
Merge branch '16-set-up-release-workflow' into 'main'
Resolve "set up release workflow" Closes
#16
See merge request
!9
parents
5e279430
d32c8863
No related branches found
No related tags found
1 merge request
!9
Resolve "set up release workflow"
Pipeline
#276735
failed
3 years ago
Stage: release
Stage: build
Changes
4
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
.dockerignore
+1
-0
1 addition, 0 deletions
.dockerignore
.gitlab-ci.yml
+17
-4
17 additions, 4 deletions
.gitlab-ci.yml
pyproject.toml
+11
-0
11 additions, 0 deletions
pyproject.toml
requirements.ci.txt
+1
-0
1 addition, 0 deletions
requirements.ci.txt
with
30 additions
and
4 deletions
.dockerignore
0 → 100644
+
1
−
0
View file @
9a201a02
venv/
This diff is collapsed.
Click to expand it.
.gitlab-ci.yml
+
17
−
4
View file @
9a201a02
...
...
@@ -7,6 +7,7 @@ workflow:
stages
:
-
test
-
release
-
build
variables
:
...
...
@@ -34,21 +35,33 @@ lint dockerfile:
changes
:
-
Dockerfile
release
:
stage
:
release
image
:
docker.io/python:3.8-alpine
before_script
:
-
pip install --user --requirement requirements.ci.txt
script
:
-
semantic-release --verbosity=DEBUG publish
rules
:
-
if
:
$CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH
build container image
:
stage
:
build
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"
-
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=${
CI_COMMIT_SHORT_SHA
}
--build-arg version=${
CI_COMMIT_SHORT_SHA
}
--destination $CI_REGISTRY_IMAGE/repdav:$
CI_COMMIT_SHORT_SHA
--destination $harbor_registry/$harbor_repo/repdav:$
CI_COMMIT_SHORT_SHA
--build-arg vcs_ref=${
version
}
--build-arg version=${
version
}
--destination $CI_REGISTRY_IMAGE/repdav:$
version
--destination $harbor_registry/$harbor_repo/repdav:$
version
rules
:
-
if
:
$CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH
-
if
:
$CI_COMMIT_TAG
This diff is collapsed.
Click to expand it.
pyproject.toml
0 → 100644
+
11
−
0
View file @
9a201a02
[tool.semantic_release]
version_source
=
"tag"
branch
=
"main"
major_on_zero
=
false
tag_format
=
"{version}"
build_command
=
false
upload_to_repository
=
false
hvcs
=
"gitlab"
hvcs_domain
=
"gitlab.gwdg.de"
hvcs_api_domain
=
"gitlab.gwdg.de/api/v4"
check_build_status
=
true
This diff is collapsed.
Click to expand it.
requirements.ci.txt
0 → 100644
+
1
−
0
View file @
9a201a02
python-semantic-release==7.25.0
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