-
Notifications
You must be signed in to change notification settings - Fork 0
/
.drone.yml
42 lines (38 loc) · 894 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
kind: pipeline
type: docker
name: default
platform:
os: linux
arch: arm64
trigger:
branch:
- main
- test
steps:
- name: build-and-push
image: plugins/docker
settings:
registry: registry.e012.se
username:
from_secret: registry_username
password:
from_secret: registry_password
repo: registry.e012.se/oscar230/oresundspacecollective.com
tags: "${DRONE_SOURCE_BRANCH}"
dockerfile: Dockerfile
force_tag: false
purge: true
- name: deploy
image: alpine:latest
environment:
WATCHTOWER_HOST:
from_secret: watchtower-host
WATCHTOWER_AUTH_TOKEN:
from_secret: watchtower-token
commands:
- apk add --no-cache curl
- |
curl -H "Authorization: Bearer $WATCHTOWER_AUTH_TOKEN" "https://$WATCHTOWER_HOST/v1/update"
when:
status:
- success