Initial commit

Dustin 2020-03-25 08:22:10 -05:00
commit 857c5c2b19
3 changed files with 25 additions and 0 deletions

7
Containerfile Normal file
View File

@ -0,0 +1,7 @@
FROM arm32v7/python:3.7-slim
RUN apt-get update && apt-get install -y \
gcc \
libffi-dev \
libssl-dev \
&& rm -rf /var/lib/apt/lists/*

17
Jenkinsfile vendored Normal file
View File

@ -0,0 +1,17 @@
def containerName
node('arm') {
stage('Checkout SCM') {
checkout scm
}
stage('Agent Setup') {
containerName = sh(
script: 'sha1sum Containerfile',
returnStdout: true
).split()[0]
sh "podman build -t ${containerName} -f Containerfile"
}
stage('Build Wheels') {
sh "podman run -w ${WORKSPACE} -v ${WORKSPACE}:${WORKSPACE} ${containerName} sh build.sh"
}
}

1
build.sh Normal file
View File

@ -0,0 +1 @@
python3.7 -m pip wheel -w dist/ homeassistant