docker-compose deployment #18

Merged
wanderer merged 6 commits from docker-deploy into master 2020-10-03 21:00:22 +02:00
Showing only changes of commit bdeddff68c - Show all commits

@ -30,6 +30,12 @@ platform:
os: linux os: linux
arch: amd64 arch: amd64
trigger:
branch:
- master
event:
- pull_request
depends_on: depends_on:
- pull - pull
@ -37,18 +43,47 @@ steps:
- name: hugo-extended - name: hugo-extended
pull: if-not-exists pull: if-not-exists
image: immawanderer/fedora-hugo:latest image: immawanderer/fedora-hugo:latest
when:
branch:
- master
event:
- push
- pull_request
commands: commands:
- git submodule init - git submodule init
- git submodule update - git submodule update
- hugo version - hugo version
- hugo --gc=true --minify - hugo --gc=true --minify
---
kind: pipeline
type: docker
name: docker-build
platform:
os: linux
arch: amd64
trigger:
branch:
- master
event:
- pull_request
depends_on:
- build
steps:
- name: docker-build
pull: always
image: tmaier/docker-compose:latest
depends_on:
- hugo-extended
volumes:
- name: s
path: /var/run/docker.sock
commands:
- docker-compose build
volumes:
- name: s
host:
path: /var/run/docker.sock
--- ---
kind: pipeline kind: pipeline
@ -69,7 +104,7 @@ trigger:
- tag - tag
depends_on: depends_on:
- build - docker-build
steps: steps:
- name: hugo-extended - name: hugo-extended
@ -118,7 +153,7 @@ clone:
trigger: trigger:
branch: branch:
- master - master
- "*" - testing
event: event:
- push - push
- tag - tag