Commit 7472a714 authored by Seblu's avatar Seblu

Add Gitlab CI

parent b1e9a5d5
Pipeline #245 passed with stages
in 5 minutes and 14 seconds
---
makepkg:
stage: build
script:
- seblu-build
artifacts:
name: $CI_PROJECT_NAME-$CI_COMMIT_REF_NAME-$CI_COMMIT_SHA
expire_in: 1 week
paths:
- "*.pkg.tar.xz"
- "*.pkg.tar.zst"
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:
refs:
- master
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment