Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
Version
Manage
Activity
Members
Plan
Jira
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Analyze
Contributor analytics
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
OSS
Utilities
Version
Commits
dcd7d37e
Verified
Commit
dcd7d37e
authored
1 year ago
by
Volker Schukai
Browse files
Options
Downloads
Patches
Plain Diff
fix: test gorelease
parent
cfb20764
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
.gitlab-ci.yml
+2
-15
2 additions, 15 deletions
.gitlab-ci.yml
devenv.nix
+21
-15
21 additions, 15 deletions
devenv.nix
with
23 additions
and
30 deletions
.gitlab-ci.yml
+
2
−
15
View file @
dcd7d37e
...
...
@@ -21,21 +21,8 @@ tag-it:
-
nixos
stage
:
tag
script
:
-
devenv shell ;\
/nix/store/zrs710jpfn7ngy5z4c6rrwwjq33b2a0y-git-2.42.0/bin/git config user.email "${GITLAB_USER_EMAIL}" ;\
/nix/store/zrs710jpfn7ngy5z4c6rrwwjq33b2a0y-git-2.42.0/bin/git config user.name "${GITLAB_USER_NAME:-"Gitlab CI"}" ;\
/nix/store/zrs710jpfn7ngy5z4c6rrwwjq33b2a0y-git-2.42.0/bin/git config credential.helper '!f() { echo "username=gitlab-ci-token"; echo "password=${CI_JOB_TOKEN}"; }; f' ;\
/nix/store/zrs710jpfn7ngy5z4c6rrwwjq33b2a0y-git-2.42.0/bin/git config pull.rebase
true
;\
/nix/store/zrs710jpfn7ngy5z4c6rrwwjq33b2a0y-git-2.42.0/bin/git config http.sslVerify "false" ;\
/nix/store/zrs710jpfn7ngy5z4c6rrwwjq33b2a0y-git-2.42.0/bin/git remote set-url origin https://pad:${GITLAB_TOKEN}@${CI_REPOSITORY_URL#*@} ;\
/nix/store/zrs710jpfn7ngy5z4c6rrwwjq33b2a0y-git-2.42.0/bin/git fetch --all --tags --unshallow ;\
/nix/store/zrs710jpfn7ngy5z4c6rrwwjq33b2a0y-git-2.42.0/bin/git reset --hard origin/master ;\
/nix/store/zrs710jpfn7ngy5z4c6rrwwjq33b2a0y-git-2.42.0/bin/git checkout $CI_COMMIT_REF_NAME ;\
/nix/store/zrs710jpfn7ngy5z4c6rrwwjq33b2a0y-git-2.42.0/bin/git pull origin $CI_COMMIT_REF_NAME ;\
/nix/store/55i9ylml0w72j6qy33izic8ch14rslb0-version/bin/version auto --git --verbose ;\
/nix/store/zrs710jpfn7ngy5z4c6rrwwjq33b2a0y-git-2.42.0/bin/git push origin $CI_COMMIT_REF_NAME
-
devenv shell tag-version
only
:
## regex to x.y branches and master
-
master
except
:
-
tags
...
...
@@ -53,5 +40,5 @@ release:
# Disable shallow cloning so that goreleaser can diff between tags to
GIT_DEPTH
:
0
script
:
-
devenv shell /nix/store/cgzhkcv3wvcd2zlblv4y0vhjvw479467-goreleaser-1.22.1/bin/
goreleaser release --clean
-
goreleaser release --clean
This diff is collapsed.
Click to expand it.
devenv.nix
+
21
−
15
View file @
dcd7d37e
...
...
@@ -63,21 +63,8 @@ tasks:
- nixos
stage: tag
script:
- devenv shell ;\
${
pkgs
.
git
}
/bin/git config user.email "
''$
{GITLAB_USER_EMAIL}" ;\
${
pkgs
.
git
}
/bin/git config user.name "
''$
{GITLAB_USER_NAME:-"Gitlab CI"}" ;\
${
pkgs
.
git
}
/bin/git config credential.helper '!f() { echo "username=gitlab-ci-token"; echo "password=
''$
{CI_JOB_TOKEN}"; }; f' ;\
${
pkgs
.
git
}
/bin/git config pull.rebase true ;\
${
pkgs
.
git
}
/bin/git config http.sslVerify "false" ;\
${
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 reset --hard origin/master ;\
${
pkgs
.
git
}
/bin/git checkout $CI_COMMIT_REF_NAME ;\
${
pkgs
.
git
}
/bin/git pull origin $CI_COMMIT_REF_NAME ;\
${
inputs
.
version
.
defaultPackage
.
"
${
builtins
.
currentSystem
}
"
}
/bin/version auto --git --verbose ;\
${
pkgs
.
git
}
/bin/git push origin $CI_COMMIT_REF_NAME
- devenv shell tag-version
only:
## regex to x.y branches and master
- master
except:
- tags
...
...
@@ -95,7 +82,7 @@ tasks:
# Disable shallow cloning so that goreleaser can diff between tags to
GIT_DEPTH: 0
script:
-
devenv shell
${
pkgs
.
goreleaser
}
/bin/
goreleaser release --clean
- goreleaser release --clean
''
;
};
...
...
@@ -237,7 +224,26 @@ builds:
];
scripts
.
tag-version
.
exec
=
''
!#
${
pkgs
.
bash
}
/bin/bash
${
pkgs
.
git
}
/bin/git config user.email "
''$
{GITLAB_USER_EMAIL}" ;\
${
pkgs
.
git
}
/bin/git config user.name "
''$
{GITLAB_USER_NAME:-"Gitlab CI"}" ;\
${
pkgs
.
git
}
/bin/git config credential.helper '!f() { echo "username=gitlab-ci-token"; echo "password=
''$
{CI_JOB_TOKEN}"; }; f' ;\
${
pkgs
.
git
}
/bin/git config pull.rebase true ;\
${
pkgs
.
git
}
/bin/git config http.sslVerify "false" ;\
${
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 reset --hard origin/master ;\
${
pkgs
.
git
}
/bin/git checkout $CI_COMMIT_REF_NAME ;\
${
pkgs
.
git
}
/bin/git pull origin $CI_COMMIT_REF_NAME ;\
${
inputs
.
version
.
defaultPackage
.
"
${
builtins
.
currentSystem
}
"
}
/bin/version auto --git --verbose ;\
${
pkgs
.
git
}
/bin/git push origin $CI_COMMIT_REF_NAME
''
;
scripts
.
update-files
.
exec
=
''
!#
${
pkgs
.
bash
}
/bin/bash
update_symlink() {
local source_path="$1"
local target_path="$2"
...
...
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