Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
D
DojoExerciseChecker
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
External wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package 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
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Dojo Project (HES-SO)
Projects
Pipelines
DojoExerciseChecker
Commits
c796705c
Commit
c796705c
authored
1 year ago
by
michael.minelli
Browse files
Options
Downloads
Patches
Plain Diff
CI/CD => Enhancements
parent
a3421507
Branches
Branches containing commit
Tags
2.0.0
Tags containing commit
No related merge requests found
Pipeline
#26331
passed
1 year ago
Stage: build
Stage: clean
Stage: release
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
.gitlab-ci.yml
+3
-10
3 additions, 10 deletions
.gitlab-ci.yml
with
3 additions
and
10 deletions
.gitlab-ci.yml
+
3
−
10
View file @
c796705c
...
@@ -6,8 +6,6 @@ variables:
...
@@ -6,8 +6,6 @@ variables:
DOCKER_TLS_CERTDIR
:
DOCKER_TLS_CERTDIR
:
DOCKER_DRIVER
:
overlay2
DOCKER_DRIVER
:
overlay2
PROJECT_NAME
:
DojoExerciseChecker
VERSION_DEV_SUFFIX
:
'
-dev'
VERSION_DEV_SUFFIX
:
'
-dev'
GITLAB_API_PROJECT_URL
:
${CI_API_V4_URL}/projects/${CI_PROJECT_ID}
GITLAB_API_PROJECT_URL
:
${CI_API_V4_URL}/projects/${CI_PROJECT_ID}
...
@@ -22,11 +20,6 @@ variables:
...
@@ -22,11 +20,6 @@ variables:
script
:
script
:
-
IS_DEV=$([[ $CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH ]] && echo
false
|| echo
true
)
-
IS_DEV=$([[ $CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH ]] && echo
false
|| echo
true
)
-
VERSION=$(jq -r .version $PROJECT_FOLDER/package.json)$([[ $IS_DEV ==
true
]] && echo $VERSION_DEV_SUFFIX || echo '')
-
VERSION=$(jq -r .version $PROJECT_FOLDER/package.json)$([[ $IS_DEV ==
true
]] && echo $VERSION_DEV_SUFFIX || echo '')
-
DOCKER_LOCAL_IMAGE_PATH=$ARTIFACTS_FOLDER/$VERSION.tar
.get_packages_url
:
script
:
-
PACKAGE_URL_DOCKER_IMAGE="${PACKAGE_REGISTRY_URL}/${VERSION}/${PROJECT_NAME}.tar"
.init_dind_script
:
.init_dind_script
:
script
:
script
:
...
@@ -66,12 +59,13 @@ variables:
...
@@ -66,12 +59,13 @@ variables:
stages
:
stages
:
-
test
-
build
-
build
-
clean
-
clean
-
release
-
release
build:
test
:
test:
build
:
stage
:
build
stage
:
test
tags
:
tags
:
-
build
-
build
-
dind
-
dind
...
@@ -167,7 +161,6 @@ release:gitlab:
...
@@ -167,7 +161,6 @@ release:gitlab:
image
:
registry.gitlab.com/gitlab-ci-utils/curl-jq:latest
image
:
registry.gitlab.com/gitlab-ci-utils/curl-jq:latest
script
:
script
:
-
!reference
[
.get_version
,
script
]
-
!reference
[
.get_version
,
script
]
-
!reference
[
.get_packages_url
,
script
]
-
echo 'Running release_job'
-
echo 'Running release_job'
# Extract description from CHANGELOG.md
# Extract description from CHANGELOG.md
-
CHANGELOG_LINE_START=`awk '/##\ [0-9]+\.[0-9]+\.[0-9]+/{print NR; exit;}' CHANGELOG.md`
-
CHANGELOG_LINE_START=`awk '/##\ [0-9]+\.[0-9]+\.[0-9]+/{print NR; exit;}' CHANGELOG.md`
...
...
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