Browse Source

update drone.yml and add Dockerfile

tags/v0.0.28
Peter Vivell 6 years ago
parent
commit
f9abd3e2db
2 changed files with 27 additions and 13 deletions
  1. 14
    0
      Dockerfile
  2. 13
    13
      drone.yml

+ 14
- 0
Dockerfile View File

@@ -0,0 +1,14 @@
1
+FROM debian:stable-slim
2
+MAINTAINER Drone CI/CD
3
+
4
+
5
+RUN cat >> /etc/apt/apt.conf.d/01-proxy <<-EOF \
6
+        Acquire::http  { Proxy "${HTTP_PROXY}"; } \
7
+        Acquire::https { Proxy "https://"; }; \
8
+      EOF
9
+
10
+RUN apt-get update && \
11
+    apt-get --yes upgrade && \
12
+    apt-get --yes install ${BUILDDEPS}
13
+
14
+CMD [ "/bin/bash", "-c", "#(noop)" ] 

+ 13
- 13
drone.yml View File

@@ -40,19 +40,19 @@ steps:
40 40
     #custom_dns:
41 41
     #storage_driver: aufs # aufs, overlay or vfs
42 42
 
43
-    #debug: true
44
-    #launch_debug: true
45
-    #target: production # build target from dockerfile, e.g. production, debug
46
-    #dockerfile: Dockerfile
47
-
48
-    #auto_tag: false
49
-    #auto_tag_suffix: linux-amd64
50
-    #force_tag: true
51
-    #tags:
52
-    #  - latest
53
-    #build_args:
54
-    #  - HTTP_PROXY: http://172.17.0.1:3142
55
-
43
+    debug: true
44
+    launch_debug: true
45
+    target: production # build target from dockerfile, e.g. production, debug
46
+    dockerfile: Dockerfile
47
+
48
+    auto_tag: false
49
+    auto_tag_suffix: linux-amd64
50
+    force_tag: true
51
+    tags:
52
+      - latest
53
+    build_args:
54
+      - HTTP_PROXY: http://172.17.0.1:3142
55
+      - BUILDDEPS: build-essential libc6-dev libhidapi-dev libssl-dev zip
56 56
 
57 57
 
58 58
 

Loading…
Cancel
Save