Kaynağa Gözat

:gear: updating drone indents one more time

tags/0.0.1^2
j 3 yıl önce
ebeveyn
işleme
0fcd78e2e8
1 değiştirilmiş dosya ile 82 ekleme ve 87 silme
  1. 82
    87
      .drone.yml

+ 82
- 87
.drone.yml Dosyayı Görüntüle

7
 name: frontend_run_tests
7
 name: frontend_run_tests
8
 
8
 
9
 steps:
9
 steps:
10
-    - name: test-frontend
11
-        image: node
12
-        commands:
13
-            - pwd
14
-            - cd ./frontend
15
-            - npm install
16
-            - npm test
17
-        volumes:
18
-            - name: frontend_node_cache
19
-                path: /drone/src/frontend/node_modules
10
+- name: test-frontend
11
+    image: node
12
+    commands:
13
+    - pwd
14
+    - cd ./frontend
15
+    - npm install
16
+    - npm test
17
+    volumes:
18
+    - name: frontend_node_cache
19
+        path: /drone/src/frontend/node_modules
20
 
20
 
21
 volumes:
21
 volumes:
22
-    - name: frontend_node_cache
23
-        host:
24
-            path: /tmp/cache/drone/frontend/node_modules
25
-    - name: frontend_build
26
-        host:
27
-            path: /tmp/cache/drone/frontend/build
22
+- name: frontend_node_cache
23
+    host:
24
+        path: /tmp/cache/drone/frontend/node_modules
25
+- name: frontend_build
26
+    host:
27
+        path: /tmp/cache/drone/frontend/build
28
 ---
28
 ---
29
 ##################
29
 ##################
30
 # Frontend Build #
30
 # Frontend Build #
33
 kind: pipeline
33
 kind: pipeline
34
 name: frontend_run_build
34
 name: frontend_run_build
35
 depends_on:
35
 depends_on:
36
-    - frontend_run_tests
36
+- frontend_run_tests
37
 trigger:
37
 trigger:
38
     status:
38
     status:
39
-        # Only runs if the first pipeline was fully successful
40
-        - success
39
+    - success
41
     branch:
40
     branch:
42
-        - dev
41
+    - dev
43
 
42
 
44
 steps:
43
 steps:
45
-    - name: build-frontend
46
-        image: node
47
-        commands:
48
-            - cd ./frontend
49
-            - rm -Rf ./build/*
50
-            - npx browserslist@latest --update-db
51
-            - npm run build
52
-            - ls ./build
53
-        environment:
54
-            NODE_OPTIONS: --openssl-legacy-provider
55
-        volumes:
56
-            # Link node_modules cache from host filesystem into container at the expected location
57
-            - name: frontend_node_cache
58
-            path: /drone/src/frontend/node_modules
59
-            - name: frontend_build
60
-            path: /drone/src/frontend/build
61
-
62
-volumes:
44
+- name: build-frontend
45
+    image: node
46
+    commands:
47
+    - cd ./frontend
48
+    - rm -Rf ./build/*
49
+    - npx browserslist@latest --update-db
50
+    - npm run build
51
+    - ls ./build
52
+    environment:
53
+        NODE_OPTIONS: --openssl-legacy-provider
54
+    volumes:
63
     - name: frontend_node_cache
55
     - name: frontend_node_cache
64
-        host:
65
-            path: /tmp/cache/drone/frontend/node_modules
56
+        path: /drone/src/frontend/node_modules
66
     - name: frontend_build
57
     - name: frontend_build
67
-        host:
68
-            path: /tmp/cache/drone/frontend/build
58
+        path: /drone/src/frontend/build
59
+
60
+volumes:
61
+- name: frontend_node_cache
62
+    host:
63
+        path: /tmp/cache/drone/frontend/node_modules
64
+- name: frontend_build
65
+    host:
66
+        path: /tmp/cache/drone/frontend/build
69
 ---
67
 ---
70
 #################
68
 #################
71
 # Backend Tests #
69
 # Backend Tests #
75
 name: backend_run_tests
73
 name: backend_run_tests
76
 
74
 
77
 steps:
75
 steps:
78
-    # Test the vue frontend
79
-    - name: test-backend
80
-        image: node
81
-        commands:
82
-            - pwd
83
-            - cd ./backend
84
-            - npm install
85
-            - npm test
86
-        volumes:
87
-            # Link node_modules cache from host filesystem into container at the expected location
88
-            - name: backend_node_cache
89
-                path: /drone/src/backend/node_modules
76
+- name: test-backend
77
+    image: node
78
+    commands:
79
+    - pwd
80
+    - cd ./backend
81
+    - npm install
82
+    - npm test
83
+    volumes:
84
+    - name: backend_node_cache
85
+        path: /drone/src/backend/node_modules
90
 
86
 
91
 volumes:
87
 volumes:
92
-    - name: backend_node_cache
93
-        host:
94
-            path: /tmp/cache/drone/backend/node_modules
95
-    - name: backend_build
96
-        host:
97
-            path: /tmp/cache/drone/backend/build
88
+- name: backend_node_cache
89
+    host:
90
+        path: /tmp/cache/drone/backend/node_modules
91
+- name: backend_build
92
+    host:
93
+        path: /tmp/cache/drone/backend/build
98
 ---
94
 ---
99
 ########################
95
 ########################
100
 # Deploy to Production #
96
 # Deploy to Production #
103
 kind: pipeline
99
 kind: pipeline
104
 name: deploy
100
 name: deploy
105
 depends_on:
101
 depends_on:
106
-    # Must run after the first pipeline
107
-    - frontend_run_tests
108
-    - frontend_run_build
109
-    - backend_run_tests
102
+# Must run after the first pipeline
103
+- frontend_run_tests
104
+- frontend_run_build
105
+- backend_run_tests
110
 trigger:
106
 trigger:
111
     status:
107
     status:
112
-        # Only runs if the first pipeline was fully successful
113
-        - success
108
+    - success
114
     branch:
109
     branch:
115
-        - master
110
+    - master
116
 
111
 
117
 steps:
112
 steps:
118
-    # post-receive hook
119
-    - name: push commit
120
-        image: appleboy/drone-git-push:0.2.0-linux-amd64
121
-        settings:
122
-            branch: master
123
-            remote: maeda@165.232.128.85:/opt/staging/siimee.git
124
-            remote_name: staging
125
-            force: true
126
-            ssh_key:
127
-                # !: id_rsa from DRONE machine
128
-                from_secret: push_deploy_key
113
+# post-receive hook
114
+- name: push commit
115
+    image: appleboy/drone-git-push:0.2.0-linux-amd64
116
+    settings:
117
+        branch: master
118
+        remote: maeda@165.232.128.85:/opt/staging/siimee.git
119
+        remote_name: staging
120
+        force: true
121
+        ssh_key:
122
+            # !: id_rsa from DRONE machine
123
+            from_secret: push_deploy_key
129
 
124
 
130
 volumes:
125
 volumes:
131
-    - name: frontend_node_cache
132
-        host:
133
-            path: /tmp/cache/drone/frontend/node_modules
134
-    - name: frontend_build
135
-        host:
136
-            path: /tmp/cache/drone/frontend/build
137
-    - name: backend_node_cache
138
-        host:
139
-            path: /tmp/cache/drone/backend/node_modules
126
+- name: frontend_node_cache
127
+    host:
128
+        path: /tmp/cache/drone/frontend/node_modules
129
+- name: frontend_build
130
+    host:
131
+        path: /tmp/cache/drone/frontend/build
132
+- name: backend_node_cache
133
+    host:
134
+        path: /tmp/cache/drone/backend/node_modules

Loading…
İptal
Kaydet