-
Notifications
You must be signed in to change notification settings - Fork 3
/
build.gradle
35 lines (28 loc) · 913 Bytes
/
build.gradle
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
plugins {
id 'com.bmuschko.docker-remote-api' version '4.8.0'
}
import com.bmuschko.gradle.docker.tasks.image.*
task(buildDockerImage, type: DockerBuildImage) {
inputDir = file('.')
tags.addAll(['snakebot-web:latest', 'docker.snake.cygni.se:5000/snakebot-web:latest'])
}
task(pushDockerLatestImage, type: DockerPushImage) {
imageName = 'docker.snake.cygni.se:5000/snakebot-web'
tag ='latest'
}
task(dockerBuildAndPush) {
dependsOn buildDockerImage
dependsOn pushDockerLatestImage
}
task(buildDockerNightlyImage, type: DockerBuildImage) {
inputDir = file('.')
tags.addAll(['snakebot-web:nightly', 'docker.snake.cygni.se:5000/snakebot-web:nightly'])
}
task(pushDockerNightlyImage, type: DockerPushImage) {
imageName = 'docker.snake.cygni.se:5000/snakebot-web'
tag ='nightly'
}
task(dockerBuildAndPushNightly) {
dependsOn buildDockerNightlyImage
dependsOn pushDockerNightlyImage
}