Compare commits
1 Commits
71206e5f0b
...
7b3b5c8344
Author | SHA1 | Date |
---|---|---|
|
7b3b5c8344 |
|
@ -0,0 +1,11 @@
|
|||
FROM fedora:29
|
||||
|
||||
RUN useradd -M -l -u 3000018 jenkins
|
||||
RUN dnf install -y \
|
||||
gcc \
|
||||
libjpeg-devel \
|
||||
openssh-clients \
|
||||
python3-devel \
|
||||
rsync \
|
||||
zlib-devel \
|
||||
--
|
|
@ -0,0 +1,34 @@
|
|||
pipeline {
|
||||
agent {
|
||||
dockerfile {
|
||||
dir 'ci'
|
||||
args '-v /etc/ssh/ssh_known_hosts:/etc/ssh/ssh_known_hosts:ro'
|
||||
}
|
||||
}
|
||||
|
||||
triggers {
|
||||
pollSCM ''
|
||||
}
|
||||
|
||||
environment {
|
||||
PUBLISH_HOST = 'file0.pyrocufflink.blue'
|
||||
XDG_CACHE_HOME = "${WORKSPACE}"
|
||||
}
|
||||
|
||||
stages {
|
||||
stage('Build') {
|
||||
steps {
|
||||
sh '. ci/build.sh'
|
||||
}
|
||||
}
|
||||
|
||||
stage('Publish') {
|
||||
steps {
|
||||
sshagent(['jenkins-sftp']) {
|
||||
sh '. ci/publish.sh'
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
}
|
|
@ -0,0 +1,7 @@
|
|||
rm -rf .venv
|
||||
python3 -m venv .venv
|
||||
|
||||
.venv/bin/pip install --upgrade pip setuptools wheel
|
||||
.venv/bin/pip wheel -w dist -r requirements.txt
|
||||
|
||||
sed -i '/^-i/d' requirements.txt
|
|
@ -0,0 +1,9 @@
|
|||
: ${PUBLISH_PATH:=/var/lib/wheels/taiga}
|
||||
|
||||
rsync -rtiO \
|
||||
--delete \
|
||||
--include '*.whl' \
|
||||
--include requirements.txt \
|
||||
dist/ \
|
||||
requirements.txt \
|
||||
${PUBLISH_HOST}:${PUBLISH_PATH%/}/
|
Loading…
Reference in New Issue