🚀 Automatic deployment through jenkins

This commit is contained in:
Joshua Arulsamy
2020-08-09 00:44:32 -06:00
parent 63fea747c6
commit 76d2d97c62
4 changed files with 19 additions and 1 deletions
Vendored
+2 -1
View File
@@ -49,7 +49,7 @@ pipeline {
steps {
sh ''' source /var/lib/jenkins/miniconda3/etc/profile.d/conda.sh
conda activate ${BUILD_TAG}
docker build .
python deploy/build.py
'''
}
post {
@@ -58,6 +58,7 @@ pipeline {
archiveArtifacts (allowEmptyArchive: true,
artifacts: 'dist/*whl',
fingerprint: true)
sh 'python deploy/push.py'
}
}
}
+1
View File
@@ -0,0 +1 @@
VERSION = "0.0.4"
+8
View File
@@ -0,0 +1,8 @@
import os
import sys
sys.path.append("PlexBot")
from __version__ import VERSION
sys.exit(os.system(f"docker build -t jarulsamy/plex-bot:{VERSION} ."))
Executable
+8
View File
@@ -0,0 +1,8 @@
import os
import sys
sys.path.append("PlexBot")
from __version__ import VERSION
sys.exit(os.system(f"docker push jarulsamy/plex-bot:{VERSION}"))