ci: add 'check compose' step to pipelines
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
surtur 2022-09-09 14:37:37 +02:00
parent 4912d1f9e8
commit 9b08a69426
Signed by: wanderer
GPG Key ID: 19CE1EC1D9E0486D

@ -131,13 +131,28 @@ depends_on:
steps:
- name: hadolint
image: docker.io/hadolint/hadolint:v2.10.0-alpine
depends_on: [clone]
commands:
- hadolint --version
- hadolint Dockerfile
- name: check compose
pull: always
image: docker.io/tmaier/docker-compose:latest
depends_on: [clone]
volumes:
- name: s
path: /var/run/docker.sock
environment:
COMPOSE_DOCKER_CLI_BUILD: 1
DOCKER_BUILDKIT: 1
commands:
- docker-compose -f docker-compose.yml config -q
- name: build
pull: always
image: docker.io/tmaier/docker-compose:latest
depends_on: [hadolint, check compose]
volumes:
- name: s
path: /var/run/docker.sock
@ -266,6 +281,19 @@ steps:
- hadolint --version
- hadolint Dockerfile
- name: check compose
pull: always
image: docker.io/tmaier/docker-compose:latest
depends_on: [clone]
volumes:
- name: s
path: /var/run/docker.sock
environment:
COMPOSE_DOCKER_CLI_BUILD: 1
DOCKER_BUILDKIT: 1
commands:
- docker-compose -f docker-compose.yml config -q
- name: go fmt
image: docker.io/library/golang:1.18.5-alpine3.16
volumes:
@ -312,6 +340,7 @@ steps:
depends_on:
- rm-intermediate
- hadolint
- check compose
- go fmt
- go vet
- go build
@ -434,6 +463,6 @@ steps:
---
kind: signature
hmac: db9d7fad7e5ae3387693f534489a3d527e291f656470a31eeaea3c89956d1a9c
hmac: 3ad709a54550a0182e0fe6df356c5de7204b373515546e5a95de971731f250fa
...