Build docker image with commands
This commit is contained in:
12
Jenkinsfile
vendored
12
Jenkinsfile
vendored
@@ -1,14 +1,10 @@
|
||||
pipeline {
|
||||
agent {
|
||||
dockerfile {
|
||||
filename 'Dockerfile'
|
||||
}
|
||||
|
||||
}
|
||||
agent any
|
||||
stages {
|
||||
stage('Build') {
|
||||
stage('Build Docker Image') {
|
||||
steps {
|
||||
sh 'echo "test"'
|
||||
sh '''docker build -t worldcraftdiscordbot:latest .
|
||||
docker tag worldcraftdiscordbot:latest worldcraftdiscordbot:latest:v${env.BUILD_ID}'''
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user