use pre-defined docker-compose image
parent
6434acfa40
commit
5486ed7340
12
.drone.yml
12
.drone.yml
|
@ -5,16 +5,9 @@ pipeline:
|
||||||
- cd site; ./build/build.sh syntax
|
- cd site; ./build/build.sh syntax
|
||||||
|
|
||||||
deploy:
|
deploy:
|
||||||
image: docker:dind
|
image: tmaier/docker-compose
|
||||||
commands:
|
commands:
|
||||||
# Get docker-compose
|
# Install git
|
||||||
- wget -q -O /usr/local/bin/docker-compose https://github.com/docker/compose/releases/download/1.22.0/docker-compose-$(uname -s)-$(uname -m)
|
|
||||||
# Make it executable
|
|
||||||
- chmod 700 /usr/local/bin/docker-compose
|
|
||||||
# Download and install glibc (Alpine comes with musl libc) because docker-compose relies on it
|
|
||||||
- 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
|
|
||||||
- wget -q -O /etc/apk/keys/sgerrand.rsa.pub https://alpine-pkgs.sgerrand.com/sgerrand.rsa.pub
|
|
||||||
- apk add -q --update glibc-2.27-r0.apk glibc-bin-2.27-r0.apk
|
|
||||||
- apk add -q git
|
- apk add -q git
|
||||||
|
|
||||||
# Clone the git remository
|
# Clone the git remository
|
||||||
|
@ -22,6 +15,7 @@ pipeline:
|
||||||
# Build the docker container
|
# Build the docker container
|
||||||
# Clean things up
|
# Clean things up
|
||||||
- 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 .
|
- 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 .
|
||||||
|
|
||||||
# Run docker compose
|
# Run docker compose
|
||||||
- docker-compose up -d
|
- docker-compose up -d
|
||||||
volumes:
|
volumes:
|
||||||
|
|
Loading…
Reference in New Issue