forked from Maxluli/TinderPokemon
fix(ci): try to use Jenkinsfile
All checks were successful
Gitea/TinderPokemon/pipeline/head This commit looks good
All checks were successful
Gitea/TinderPokemon/pipeline/head This commit looks good
This commit is contained in:
27
Jenkinsfile
vendored
27
Jenkinsfile
vendored
@@ -4,12 +4,9 @@ pipeline {
|
||||
yaml '''
|
||||
apiVersion: v1
|
||||
kind: Pod
|
||||
metadata:
|
||||
labels:
|
||||
worker: tinderpokemon
|
||||
spec:
|
||||
containers:
|
||||
- name: builder
|
||||
- name: python
|
||||
image: python:3.10
|
||||
command:
|
||||
- cat
|
||||
@@ -17,16 +14,24 @@ pipeline {
|
||||
'''
|
||||
}
|
||||
}
|
||||
environment {
|
||||
SWIFT_CREDENTIALS = credentials("swift")
|
||||
}
|
||||
stages {
|
||||
stage('Deploy') {
|
||||
stage('Deploy files') {
|
||||
steps {
|
||||
container('install pip') {
|
||||
sh 'pip3 install python-swiftclient'
|
||||
}
|
||||
container('busybox') {
|
||||
sh 'swift list'
|
||||
container('python') {
|
||||
sh """
|
||||
pwd
|
||||
"""
|
||||
sh 'pip install python-swiftclient python-keystoneclient'
|
||||
sh """
|
||||
. $SWIFT_CREDENTIALS
|
||||
swift upload tinderpokemon *html
|
||||
swift upload tinderpokemon assets/
|
||||
"""
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user