Browse Source

Adding drone

Kirk Trombley 5 years ago
parent
commit
2349f87363
1 changed files with 37 additions and 0 deletions
  1. 37 0
      .drone.yml

+ 37 - 0
.drone.yml

@@ -0,0 +1,37 @@
+kind: pipeline
+type: docker
+name: ui
+
+steps:
+- name: pull
+  image: alpine:3.8
+  volumes:
+  - name: pull
+  path: /data/
+  commands:
+  - ./update.sh
+  - mv pull/ /data/
+  when:
+  branch:
+  - master
+- name: publish-server  
+  image: plugins/docker
+  volumes:
+  - name: pull
+    path: /data/
+  settings:
+    context: /data/
+    username: 
+      from_secret: registry_username
+    password: 
+      from_secret: registry_password
+    repo: registry.hiram.services/audiobot
+    tags: latest
+    registry: registry.hiram.services
+  when:
+    branch:
+    - master
+  
+volumes:
+- name: pull
+  temp: {}