Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
Monster
Manage
Activity
Members
Plan
Jira
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
OSS
Libraries
Javascript
Monster
Commits
5eb4f53a
Verified
Commit
5eb4f53a
authored
11 months ago
by
Volker Schukai
Browse files
Options
Downloads
Patches
Plain Diff
fix: wip new pipeline
parent
8298608d
No related branches found
No related tags found
No related merge requests found
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
nix/scripts/release.nix
+6
-3
6 additions, 3 deletions
nix/scripts/release.nix
with
6 additions
and
3 deletions
nix/scripts/release.nix
+
6
−
3
View file @
5eb4f53a
...
@@ -26,7 +26,10 @@ in
...
@@ -26,7 +26,10 @@ in
cd $CI_PROJECT_DIR || exit 1
cd $CI_PROJECT_DIR || exit 1
${
pkgs
'
.
git
}
/bin/git remote set-url origin https://
''$
{CI_REPOSITORY_URL#*@}
####
${
pkgs
'
.
git
}
/bin/git remote set-url origin https://
''$
{CI_REPOSITORY_URL#*@}
echo_step "Set git remote url to https://pad:secret@
''$
{CI_REPOSITORY_URL#*@}"
${
pkgs
'
.
git
}
/bin/git remote set-url origin https://pad:
''$
{GITLAB_TOKEN}@
''$
{CI_REPOSITORY_URL#*@}
${
pkgs
'
.
git
}
/bin/git fetch --all --tags --unshallow
${
pkgs
'
.
git
}
/bin/git fetch --all --tags --unshallow
${
pkgs
'
.
git
}
/bin/git reset --hard origin/master
${
pkgs
'
.
git
}
/bin/git reset --hard origin/master
...
@@ -51,6 +54,7 @@ in
...
@@ -51,6 +54,7 @@ in
fi
fi
echo_step "Write project version"
echo_step "Write project version"
### marker
export VERSION=$gitVersion
export VERSION=$gitVersion
export COMMIT="$CI_COMMIT_SHA"
export COMMIT="$CI_COMMIT_SHA"
...
@@ -66,7 +70,7 @@ in
...
@@ -66,7 +70,7 @@ in
if
${
pkgs
'
.
git
}
/bin/git tag -l | grep -q "$gitVersion"; then
if
${
pkgs
'
.
git
}
/bin/git tag -l | grep -q "$gitVersion"; then
echo_step "Tag $gitVersion existiert bereits. Lösche und setze den Tag neu."
echo_step "Tag $gitVersion existiert bereits. Lösche und setze den Tag neu."
${
pkgs
'
.
git
}
/bin/git tag -d "$gitVersion"
${
pkgs
'
.
git
}
/bin/git tag -d "$gitVersion"
${
pkgs
'
.
git
}
/bin/git push origin --delete "$gitVersion"
${
pkgs
'
.
git
}
/bin/git push
-o ci.skip
origin --delete "$gitVersion"
fi
fi
${
pkgs
'
.
git
}
/bin/git tag -a "$gitVersion" -m"chore: bump version to $gitVersion"
${
pkgs
'
.
git
}
/bin/git tag -a "$gitVersion" -m"chore: bump version to $gitVersion"
...
@@ -83,7 +87,6 @@ in
...
@@ -83,7 +87,6 @@ in
${
pkgs
'
.
git
}
/bin/git tag -a "$gitVersion" -m"chore: bump version to $gitVersion"
${
pkgs
'
.
git
}
/bin/git tag -a "$gitVersion" -m"chore: bump version to $gitVersion"
${
pkgs
'
.
git
}
/bin/git --no-pager log --decorate=short --pretty=oneline -n 5
${
pkgs
'
.
git
}
/bin/git --no-pager log --decorate=short --pretty=oneline -n 5
${
pkgs
'
.
git
}
/bin/git remote set-url origin https://pad:
''$
{GITLAB_TOKEN}@
''$
{CI_REPOSITORY_URL#*@}
if !
${
pkgs
'
.
git
}
/bin/git push origin "$CI_COMMIT_REF_NAME" --tags ; then
if !
${
pkgs
'
.
git
}
/bin/git push origin "$CI_COMMIT_REF_NAME" --tags ; then
echo_fail "Error: Could not push git tag $gitVersion."
echo_fail "Error: Could not push git tag $gitVersion."
exit 1
exit 1
...
...
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