mirror of
https://github.com/crawlab-team/crawlab.git
synced 2026-01-22 17:31:03 +01:00
updated Jenkinsfile
This commit is contained in:
@@ -1,4 +1,3 @@
|
||||
|
||||
FROM golang:1.12 AS backend-build
|
||||
|
||||
WORKDIR /go/src/app
|
||||
|
||||
10
Jenkinsfile
vendored
10
Jenkinsfile
vendored
@@ -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
|
||||
"""
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user