Browse Source

use pre-defined docker-compose image

master
Max Mehl 3 months ago
parent
commit
5486ed7340
Signed by: max.mehl <max.mehl@fsfe.org> GPG Key ID: 2704E4AB371E2E92
1 changed files with 3 additions and 9 deletions
  1. 3
    9
      .drone.yml

+ 3
- 9
.drone.yml View File

@@ -5,16 +5,9 @@ pipeline:
5 5
         - cd site; ./build/build.sh syntax
6 6
 
7 7
   deploy:
8
-    image: docker:dind
8
+    image: tmaier/docker-compose
9 9
     commands:
10
-      # Get docker-compose
11
-      - wget -q -O /usr/local/bin/docker-compose https://github.com/docker/compose/releases/download/1.22.0/docker-compose-$(uname -s)-$(uname -m)
12
-        # Make it executable
13
-      - chmod 700 /usr/local/bin/docker-compose
14
-      # Download and install glibc (Alpine comes with musl libc) because docker-compose relies on it
15
-      - wget -q https://github.com/sgerrand/alpine-pkg-glibc/releases/download/2.27-r0/glibc-2.27-r0.apk https://github.com/sgerrand/alpine-pkg-glibc/releases/download/2.27-r0/glibc-bin-2.27-r0.apk
16
-      - wget -q -O /etc/apk/keys/sgerrand.rsa.pub https://alpine-pkgs.sgerrand.com/sgerrand.rsa.pub
17
-      - apk add -q --update glibc-2.27-r0.apk glibc-bin-2.27-r0.apk
10
+      # Install git
18 11
       - apk add -q git
19 12
 
20 13
       # Clone the git remository
@@ -22,6 +15,7 @@ pipeline:
22 15
       # Build the docker container
23 16
       # Clean things up
24 17
       - git clone https://git.fsfe.org/pmpc/website.git /tmp/pmpc-build && cd /tmp/pmpc-build/ && cp /tmp/signatures/signatures.json site/data/signatures/signatures.json && docker build -t pmpc .
18
+
25 19
       # Run docker compose
26 20
       - docker-compose up -d
27 21
     volumes:

Loading…
Cancel
Save