updated Jenkinsfile

This commit is contained in:
Marvin Zhang
2019-07-31 13:29:56 +08:00
parent e47769c889
commit 9bbd30faf5
2 changed files with 2 additions and 9 deletions

View File

@@ -1,4 +1,3 @@
FROM golang:1.12 AS backend-build
WORKDIR /go/src/app

10
Jenkinsfile vendored
View File

@@ -24,7 +24,7 @@ pipeline {
steps {
echo "Building..."
sh """
docker build -t tikazyq/crawlab:latest .
docker build -t tikazyq/crawlab:latest -f Dockerfile.local .
"""
}
}
@@ -37,13 +37,7 @@ pipeline {
steps {
echo 'Deploying....'
sh """
docker rm -f crawlab | true
docker run -d --rm --name crawlab \
-p 8080:8080 \
-p 8000:8000 \
-v /home/yeqing/.env.production:/opt/crawlab/frontend/.env.production \
-v /home/yeqing/config.py:/opt/crawlab/crawlab/config/config.py \
tikazyq/crawlab master
docker-compose up
"""
}
}