-
Notifications
You must be signed in to change notification settings - Fork 0
/
.drone.yml
47 lines (46 loc) · 1.02 KB
/
.drone.yml
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
36
37
38
39
40
41
42
43
44
45
46
47
---
kind: pipeline
type: kubernetes
name: default
steps:
- name: build & push docker image (main branch)
image: plugins/docker
when:
branch:
- main
event:
exclude:
- tag
settings:
username:
from_secret: docker_username
password:
from_secret: docker_password
repo: lostpetinitiative/vk-crawler
context: DockerImage
dockerfile: DockerImage/Dockerfile
#target: final
auto_tag: true
force_tag: true
# build_args:
# - VERSION=0.0.0.${DRONE_BUILD_NUMBER}
# - GIT_COMMIT=${DRONE_COMMIT}
- name: build & push docker image (TAG)
image: plugins/docker
when:
event:
- tag
settings:
username:
from_secret: docker_username
password:
from_secret: docker_password
repo: lostpetinitiative/vk-crawler
context: DockerImage
dockerfile: DockerImage/Dockerfile
#target: final
auto_tag: true
force_tag: true
# build_args:
# - VERSION=${DRONE_TAG}.${DRONE_BUILD_NUMBER}
# - GIT_COMMIT=${DRONE_COMMIT}