-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.drone.yml
36 lines (35 loc) · 838 Bytes
/
.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
---
kind: pipeline
type: docker
name: build-and-push
steps:
- name: build-and-push
image: plugins/docker
settings:
registry: registry.hayl.in
repo: registry.hayl.in/www
tags:
- latest
- ${DRONE_COMMIT_SHA:0:8}
dockerfile: Dockerfile
username:
from_secret: docker_username
password:
from_secret: docker_password
build_args:
- COMMIT=${DRONE_COMMIT_SHA}
- REF=${DRONE_COMMIT_REF}
- TIME=${DRONE_BUILD_STARTED}
- name: rollout
image: haylinmoore/drone-rollout-restart:latest
pull: always
settings:
deployment: haylinmoore
namespace: default
kubernetes_server:
from_secret: kubernetes_server # Pulling these from secrets isn't required, but strongly encouraged
kubernetes_token:
from_secret: kubernetes_token
trigger:
branch:
- main