-
Notifications
You must be signed in to change notification settings - Fork 10
/
.drone.local.yml
93 lines (87 loc) · 2.26 KB
/
.drone.local.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
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
---
kind: pipeline
type: docker
name: default
steps:
- name: goreleaser
image: goreleaser/goreleaser
pull: if-not-exists
commands:
- cd backend
- goreleaser build --snapshot --rm-dist
- name: ui-build
image: kameshsampath/drone-ci-extension-ui-base
pull: if-not-exists
environment:
# this is required by Docker Extension to load
# static files from extension path on the Host
PUBLIC_URL: .
BROWSER: none
CI: false
commands:
- cd ui
- pnpm install
- pnpm run clean && pnpm run build
- name: build
image: thegeeklab/drone-docker-buildx
privileged: true
pull: if-not-exists
settings:
dry_run: true
purge: false
dockerfile: docker/Dockerfile.Standalone
# https://github.com/thegeeklab/drone-docker-buildx/issues/141
# cache_from:
# - type=registry,ref=kameshsampath/drone-ci-docker-extension
cache_to: type=registry,ref=kameshsampath/drone-ci-docker-extension
repo: drone/drone-ci-docker-extension
tag:
- latest
platforms:
- linux/amd64
- linux/arm64
# keep the core context to minimum as we load named contexts
context: docker
named_context:
- dist=backend/dist
- ui=ui/build
- scripts=backend/scripts
- etc=etc
volumes:
- name: dockersock
path: /var/run/docker.sock
volumes:
- name: dockersock
host:
path: /var/run/docker.sock
---
kind: pipeline
type: docker
name: build-base
steps:
- name: build
image: docker/buildx-bin
privileged: true
pull: if-not-exists
commands:
# settings:
# daemon_off: true
# dockerfile: docker/Dockerfile.pnpm
# repo: kameshsampath/drone-ci-extension-ui-base
# # https://github.com/thegeeklab/drone-docker-buildx/issues/141
# # cache_from:
# # - "type=registry,ref=kameshsampath/docker-extension-ui-cache"
# cache_to: "type=registry,ref=kameshsampath/docker-extension-ui-cache"
# tag:
# - latest
# platforms:
# - linux/amd64
# - linux/arm64
# context: ui
volumes:
- name: dockersock
path: /var/run/docker.sock
volumes:
- name: dockersock
host:
path: /var/run/docker.sock