parent
d7809b90aa
commit
410418fab3
|
@ -1,38 +0,0 @@
|
|||
pipeline {
|
||||
agent none
|
||||
options {
|
||||
skipStagesAfterUnstable()
|
||||
}
|
||||
stages {
|
||||
stage('Build') {
|
||||
agent {
|
||||
docker {
|
||||
image 'python:3.12.0-alpine3.18'
|
||||
}
|
||||
}
|
||||
steps {
|
||||
sh 'python -m py_compile *.py'
|
||||
stash(name: 'compiled-results', includes: '*.py*, fenen.spec, requirements.txt')
|
||||
}
|
||||
}
|
||||
stage('Deliver') {
|
||||
agent any
|
||||
environment {
|
||||
VOLUME = '$(pwd)/:/src'
|
||||
IMAGE = 'cdrx/pyinstaller-linux:latest'
|
||||
}
|
||||
steps {
|
||||
dir(path: env.BUILD_ID) {
|
||||
unstash(name: 'compiled-results')
|
||||
sh "docker run --rm -v ${VOLUME} ${IMAGE} 'pyinstaller --onefile fenen.py'"
|
||||
}
|
||||
}
|
||||
post {
|
||||
success {
|
||||
archiveArtifacts "${env.BUILD_ID}/dist/fenen"
|
||||
sh "docker run --rm -v ${VOLUME} ${IMAGE} 'rm -rf build dist'"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
|
@ -1,6 +1,5 @@
|
|||
# Fenen Feed Reader
|
||||
|
||||
[![Build Status](https://jenkins.paritybit.ca/buildStatus/icon?job=Gitea%2Ffenen%2Frelease)](https://jenkins.paritybit.ca/job/Gitea/job/fenen/job/release/)
|
||||
![Static Badge](https://img.shields.io/badge/version-0.3.0-blue)
|
||||
![Static Badge](https://img.shields.io/badge/license-ISC-97CA00)
|
||||
|
||||
|
|
Loading…
Reference in New Issue