Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
linux-seblu
Manage
Activity
Members
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Analyze
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
archlinux
linux-seblu
Commits
607d12f3
Commit
607d12f3
authored
4 years ago
by
Seblu
Browse files
Options
Downloads
Patches
Plain Diff
Limit CI build to tagged commits
parent
c8cfacfa
Loading
Loading
No related merge requests found
Pipeline
#393
failed
4 years ago
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
.gitlab-ci.yml
+17
-19
17 additions, 19 deletions
.gitlab-ci.yml
with
17 additions
and
19 deletions
.gitlab-ci.yml
+
17
−
19
View file @
607d12f3
---
workflow
:
rules
:
-
if
:
'
$CI_COMMIT_TAG'
makepkg
:
stage
:
build
script
:
-
seblu-build
-
seblu-build
artifacts
:
name
:
$CI_PROJECT_NAME-$CI_COMMIT_REF_NAME-$CI_COMMIT_SHA
expire_in
:
3 month
paths
:
-
config.x86_64
-
"
*.pkg.tar.*"
only
:
-
branches
-
tags
-
web
ths
:
-
config.x86_64
-
"
*.pkg.tar.*"
commitpkg
:
stage
:
deploy
script
:
-
eval $(ssh-agent -s)
# - trap "kill $SSH_AGENT_PID" 0
# trap is broken in gitlab runner, see:
# https://gitlab.com/gitlab-org/gitlab-runner/issues/3009
# use a workaournd with sleep and kill:
-
sleep 300 && kill "$SSH_AGENT_PID" & disown
-
echo "$SSH_PRIVATE_KEY" | tr -d '\r' | ssh-add - > /dev/null
-
seblu-push
only
:
-
tags
-
web
-
eval $(ssh-agent -s)
# - trap "kill $SSH_AGENT_PID" 0
# trap is broken in gitlab runner, see:
# https://gitlab.com/gitlab-org/gitlab-runner/issues/3009
# use a workaournd with sleep and kill:
-
sleep 300 && kill "$SSH_AGENT_PID" & disown
-
echo "$SSH_PRIVATE_KEY" | tr -d '\r' | ssh-add - > /dev/null
-
seblu-push
This diff is collapsed.
Click to expand it.
Seblu
@seblu
mentioned in commit
87915c9e
·
4 years ago
mentioned in commit
87915c9e
mentioned in commit 87915c9e3949f86582bbe79086a84909cd613d8f
Toggle commit list
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