-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy path.drone.yml
46 lines (42 loc) · 959 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
37
38
39
40
41
42
43
44
45
46
###### TEST RELEASE #####
kind: pipeline
type: kubernetes
name: release
trigger:
branch:
- main
event:
- push
steps:
- name: build
image: plugins/docker
environment:
PLUGIN_MTU: 1440
REDIS_URL: redis://db-service:6379
HOST: docker
settings:
username: admin
password:
from_secret: REGISTRY_PASS
dockerfile: server/Dockerfile
registry: registry.writeonly.io
repo: registry.writeonly.io/aleo-maci-server
tags: latest
build_args_from_env:
- REDIS_URL
- HOST
- name: deploy
image: alpine:latest
environment:
KUBE_URL: https://192.168.100.1:6443
KUBE_TOKEN:
from_secret: KUBE_TOKEN_ALEO_MACI
commands:
- apk add kubectl --no-cache --repository http://dl-3.alpinelinux.org/alpine/edge/testing/
- >
kubectl
--server=$KUBE_URL
--token=$KUBE_TOKEN
--insecure-skip-tls-verify=true
-n aleo-maci
rollout restart deployment/server