Initial commit
This commit is contained in:
10
Containerfile
Normal file
10
Containerfile
Normal file
@@ -0,0 +1,10 @@
|
||||
FROM arm32v7/python:3.7-slim
|
||||
|
||||
RUN apt-get update && apt-get install -y \
|
||||
gcc \
|
||||
libffi-dev \
|
||||
libssl-dev \
|
||||
openssh-client \
|
||||
procps \
|
||||
rsync \
|
||||
&& rm -rf /var/lib/apt/lists/*
|
||||
30
Jenkinsfile
vendored
Normal file
30
Jenkinsfile
vendored
Normal file
@@ -0,0 +1,30 @@
|
||||
pipeline {
|
||||
agent {
|
||||
dockerfile {
|
||||
label 'arm'
|
||||
filename 'Containerfile'
|
||||
args '-u 0:0 -v /etc/ssh/ssh_known_hosts:/etc/ssh/ssh_known_hosts:ro'
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
environment {
|
||||
TMPDIR = pwd(tmp: true)
|
||||
XDG_CACHE_HOME = "${WORKSPACE}/.cache"
|
||||
}
|
||||
|
||||
stages {
|
||||
stage('Build') {
|
||||
steps {
|
||||
sh '. ./build.sh'
|
||||
}
|
||||
}
|
||||
stage('Publish') {
|
||||
steps {
|
||||
sshagent(['jenkins-sftp']) {
|
||||
sh '. ./publish.sh'
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
8
publish.sh
Normal file
8
publish.sh
Normal file
@@ -0,0 +1,8 @@
|
||||
: ${PUBLISH_HOST:=jenkins@file0.pyrocufflink.blue}
|
||||
: ${PUBLISH_PATH:=/var/lib/wheels/homeassistant}
|
||||
|
||||
rsync -rtiO \
|
||||
--delete \
|
||||
--include '*.whl' \
|
||||
dist/ \
|
||||
${PUBLISH_HOST}:${PUBLISH_PATH%/}/
|
||||
Reference in New Issue
Block a user