-
Notifications
You must be signed in to change notification settings - Fork 12
/
.drone.yml
64 lines (57 loc) · 1.47 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
---
kind: pipeline
type: kubernetes
name: ci
steps:
- name: perform_tests
image: registry.nalewajski.pl/node-chrome
commands:
- npm install -g ember-cli@latest
- npm ci --no-audit
- cp config/environment.js.sample config/environment.js
- npm run lint:hbs
- npm run lint:js
- npm test ci
image_pull_secrets:
- registry_secret
---
kind: pipeline
type: kubernetes
name: cd
clone:
disable: true
concurrency:
limit: 1
steps:
- name: update_docker
image: docker:git
environment:
POMPA_DOCKER_DEPLOY_KEY:
from_secret: pompa_docker_deploy_key
commands:
- export SHORT_COMMIT="$(echo $DRONE_COMMIT | cut -c1-7)"
- mkdir -p ~/.ssh
- echo -ne "$POMPA_DOCKER_DEPLOY_KEY" > ~/.ssh/id_rsa
- ssh-keyscan -H github.com > ~/.ssh/known_hosts
- chmod 600 ~/.ssh/id_rsa ~/.ssh/known_hosts
- git clone [email protected]:m1nl/pompa-docker.git
- cd pompa-docker
- git config user.email "[email protected]"
- git config user.name "Drone CI"
- git submodule init -- facade/pompa
- git submodule update --checkout -- facade/pompa
- cd facade/pompa
- git checkout $DRONE_COMMIT
- cd ../..
- git add facade/pompa
- git commit --allow-empty -m "update pompa with $SHORT_COMMIT ($DRONE_COMMIT_MESSAGE) by $DRONE_COMMIT_AUTHOR"
- git push origin master
trigger:
status:
- success
branch:
- master
event:
- push
depends_on:
- ci