This commit is contained in:
YuCheng Hu 2022-10-21 12:30:18 -04:00
parent 366f9e6a6f
commit 834874797e
1 changed files with 0 additions and 50 deletions

50
Jenkinsfile vendored
View File

@ -1,50 +0,0 @@
pipeline {
agent any
tools {
nodejs 'node 17.9.1'
}
environment {
DISABLE_AUTH = 'true'
DB_ENGINE = 'sqlite'
}
stages {
stage("Pull Source Code"){
steps {
git credentialsId: 'd8a95129-132d-46d9-a864-06514d16feba', url: 'https://src.ossez.com/USVisaTrack/Usvisatrack-Ui-Docker.git'
}
}
stage('Config') {
steps {
echo 'Building..'
sh 'cd Vuejs/Admin'
sh 'yarn install'
sh 'npx browserslist@latest --update-db'
}
}
stage('BUILD VUE') {
steps {
echo 'Vue Building..'
sh 'yarn build'
}
}
stage('BUILD DOCKER') {
steps {
echo 'Testing..'
sh 'docker image prune -f'
sh 'docker build -f Dockerfile -t usvisartrack_ui:0.0.9 --label usvisartrack_ui .'
}
}
stage('DEPLOY DOCKER') {
steps {
echo 'Deploying....'
sh 'docker tag usvisartrack_ui:0.0.9 repo-docker.ossez.com/docker-hub/usvisartrack_ui:0.0.9'
sh 'docker push repo-docker.ossez.com/docker-hub/usvisartrack_ui:0.0.9'
}
}
}
}