-
Notifications
You must be signed in to change notification settings - Fork 11
/
.drone.yml
62 lines (52 loc) · 1.04 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
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
---
kind: pipeline
name: build
clone:
depth: 5000
steps:
- name: build
image: livingdocs/docker-node:20.10
volumes:
- name: dockersocket
path: /var/run/docker.sock
settings:
push: true
repo: livingdocs/docs
username:
from_secret: DOCKER_USERNAME
password:
from_secret: DOCKER_PASSWORD
- name: release
image: livingdocs/semantic-release:v2.1.1
environment:
GH_TOKEN:
from_secret: GH_TOKEN
volumes:
- name: dockersocket
host:
path: /var/run/docker.sock
trigger:
event: [push]
---
kind: pipeline
name: tag
steps:
- name: tag
image: livingdocs/docker-node:20.10
environment:
DOCKER_USERNAME:
from_secret: DOCKER_USERNAME
DOCKER_PASSWORD:
from_secret: DOCKER_PASSWORD
commands:
- |
docker-login
SHA_TAG=livingdocs/docs:sha-$DRONE_COMMIT_SHA
RELEASE_TAG=livingdocs/docs:$DRONE_TAG
regctl image cp $SHA_TAG $RELEASE_TAG
trigger:
event: [tag]
---
kind: signature
hmac: ea8d9ad2448f59d641542f6599671a2f65c5ddc2a06ac04e6626418798b1c8bb
...