ci: add 'check compose' step to pipelines
All checks were successful
continuous-integration/drone/push Build is passing
All checks were successful
continuous-integration/drone/push Build is passing
This commit is contained in:
parent
4912d1f9e8
commit
9b08a69426
31
.drone.yml
31
.drone.yml
@ -131,13 +131,28 @@ depends_on:
|
|||||||
steps:
|
steps:
|
||||||
- name: hadolint
|
- name: hadolint
|
||||||
image: docker.io/hadolint/hadolint:v2.10.0-alpine
|
image: docker.io/hadolint/hadolint:v2.10.0-alpine
|
||||||
|
depends_on: [clone]
|
||||||
commands:
|
commands:
|
||||||
- hadolint --version
|
- hadolint --version
|
||||||
- hadolint Dockerfile
|
- 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
|
- name: build
|
||||||
pull: always
|
pull: always
|
||||||
image: docker.io/tmaier/docker-compose:latest
|
image: docker.io/tmaier/docker-compose:latest
|
||||||
|
depends_on: [hadolint, check compose]
|
||||||
volumes:
|
volumes:
|
||||||
- name: s
|
- name: s
|
||||||
path: /var/run/docker.sock
|
path: /var/run/docker.sock
|
||||||
@ -266,6 +281,19 @@ steps:
|
|||||||
- hadolint --version
|
- hadolint --version
|
||||||
- hadolint Dockerfile
|
- 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
|
- name: go fmt
|
||||||
image: docker.io/library/golang:1.18.5-alpine3.16
|
image: docker.io/library/golang:1.18.5-alpine3.16
|
||||||
volumes:
|
volumes:
|
||||||
@ -312,6 +340,7 @@ steps:
|
|||||||
depends_on:
|
depends_on:
|
||||||
- rm-intermediate
|
- rm-intermediate
|
||||||
- hadolint
|
- hadolint
|
||||||
|
- check compose
|
||||||
- go fmt
|
- go fmt
|
||||||
- go vet
|
- go vet
|
||||||
- go build
|
- go build
|
||||||
@ -434,6 +463,6 @@ steps:
|
|||||||
|
|
||||||
---
|
---
|
||||||
kind: signature
|
kind: signature
|
||||||
hmac: db9d7fad7e5ae3387693f534489a3d527e291f656470a31eeaea3c89956d1a9c
|
hmac: 3ad709a54550a0182e0fe6df356c5de7204b373515546e5a95de971731f250fa
|
||||||
|
|
||||||
...
|
...
|
||||||
|
Loading…
Reference in New Issue
Block a user