-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy path.drone.yml
83 lines (72 loc) · 1.91 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
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
---
kind: pipeline
type: docker
name: build
# Platform for job, always Linux amd64
platform:
os: linux
arch: amd64
# Do not allow concurrent builds / deployments
concurrency:
limit: 1
anchors:
bundle_fundingcircle__jfrog__io: &bundle_fundingcircle__jfrog__io
environment:
BUNDLE_FUNDINGCIRCLE__JFROG__IO:
from_secret: bundle_fundingcircle__jfrog__io
# Settings to build container image
docker_settings: &docker_settings
pull_image: true
custom_labels:
registry: https://quay.io
repo: quay.io/fundingcircle/radius
dockerfile: Dockerfile
# Container registry credentials for Quay.io
docker_credentials: &docker_credentials
DOCKER_PASSWORD:
from_secret: docker_password
DOCKER_USERNAME:
from_secret: docker_username
steps:
############################################################################
# Push
#
# Run steps on each push to all branches
# Install dependencies
- name: install_node
image: node:18.17.1
commands:
- npm config set registry https://fundingcircle.jfrog.io/fundingcircle/api/npm/npm/
- curl https://[email protected]/fundingcircle/api/npm/auth >> .npmrc
- npm config fix
- npm ci
<<: *bundle_fundingcircle__jfrog__io
depends_on:
- clone
- name: install_ruby
image: ruby:3.3.0
volumes:
- name: bundle
path: /usr/local/bundle
commands:
- bundle install
depends_on:
- clone
- name: run_lint_tests
image: ruby:3.3.0
volumes:
- name: bundle
path: /usr/local/bundle
commands:
- bundle exec rake --trace
depends_on:
- install_ruby
volumes:
- name: bundle
temp: {}
trigger:
event:
- push
# End of push to all branches
############################################################################