-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.drone1.yml
More file actions
83 lines (77 loc) · 1.76 KB
/
.drone1.yml
File metadata and controls
83 lines (77 loc) · 1.76 KB
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
name: fastscore-cli
steps:
- name: git-clone
pull: default
image: plugins/git
settings:
tags: true
recursive: true
- name: build
pull: default
image: fastscore/maker
commands:
- make build
volumes:
- name: docker.sock
path: /var/run/docker.sock
- name: unit-test
image: fastscore/maker
commands:
- make test
volumes:
- name: docker.sock
path: /var/run/docker.sock
- name: fastscore-test
pull: if-not-exists
image: fastscore/maker
user: root
environment:
AWS_ACCESS_KEY_ID:
from_secret: aws_access_key_id
AWS_SECRET_ACCESS_KEY:
from_secret: aws_secret_access_key
GIT_PASS:
from_secret: git_pass
GIT_USER:
from_secret: git_user
CLOUDREPO_USERNAME:
from_secret: CLOUDREPO_USERNAME
CLOUDREPO_PASSPHRASE:
from_secret: CLOUDREPO_PASSPHRASE
REPO_NAME:
from_secret: REPO_NAME
SSH_KEY:
from_secret: ssh_key
commands:
- aws ecr get-login --no-include-email --region us-east-2 | sh
- git clone https://$GIT_USER:$GIT_PASS@github.com/opendatagroup/fastscore-test.git
- ./fastscore-test/fastest pull-env
- "./fastscore-test/fastest copy-wheel CLI \"dist/fastscore_cli-*.whl\""
- ./fastscore-test/all.sh
- chmod +rwx ./fastscore-test/create-pypirc.sh
- ./fastscore-test/create-pypirc.sh
- twine upload dist/* --repository cloudrepo
volumes:
- name: docker.sock
path: /var/run/docker.sock
- name: integrate
pull: default
image: fastscore/maker
commands:
- ./fastscore-test/fastest push-env
environment:
SSH_KEY:
from_secret: ssh_key
volumes:
- name: docker.sock
path: /var/run/docker.sock
when:
branch:
- master
event:
- push
volumes:
- name: docker.sock
host:
path: /var/run/docker.sock