fix(ci): try to use Jenkinsfile
Gitea/TinderPokemon/pipeline/head This commit looks good

This commit is contained in:
2022-10-24 17:51:50 +02:00
parent 0f959579bd
commit 3dc554837f
Vendored
+16 -11
View File
@@ -4,12 +4,9 @@ pipeline {
yaml ''' yaml '''
apiVersion: v1 apiVersion: v1
kind: Pod kind: Pod
metadata:
labels:
worker: tinderpokemon
spec: spec:
containers: containers:
- name: builder - name: python
image: python:3.10 image: python:3.10
command: command:
- cat - cat
@@ -17,16 +14,24 @@ pipeline {
''' '''
} }
} }
environment {
SWIFT_CREDENTIALS = credentials("swift")
}
stages { stages {
stage('Deploy') { stage('Deploy files') {
steps { steps {
container('install pip') { container('python') {
sh 'pip3 install python-swiftclient' sh """
} pwd
container('busybox') { """
sh 'swift list' sh 'pip install python-swiftclient python-keystoneclient'
sh """
. $SWIFT_CREDENTIALS
swift upload tinderpokemon *html
swift upload tinderpokemon assets/
"""
} }
} }
} }
} }
} }