Compare commits
1 Commits
master
...
standalone
Author | SHA1 | Date |
---|---|---|
IamTheFij | 6b0960f8a6 |
|
@ -9,8 +9,9 @@ workspace:
|
|||
steps:
|
||||
|
||||
- name: test
|
||||
image: iamthefij/drone-pre-commit@sha256:6ed8dae6b0067bd2e145e36421bcfbbc68975ff7ddaa5a3f285b5bcdaf0989c8
|
||||
image: iamthefij/drone-pre-commit:latest
|
||||
commands:
|
||||
- pip install docker-compose
|
||||
- make all
|
||||
|
||||
- name: notify
|
||||
|
|
|
@ -5,3 +5,8 @@
|
|||
language: script
|
||||
entry: compose-check.sh
|
||||
files: (docker-)?compose\.ya?ml$
|
||||
- id: docker-compose-check-standalone
|
||||
name: Validate docker compose files using standalone compose binary
|
||||
language: python
|
||||
entry: compose-check.sh
|
||||
files: (docker-)?compose\.ya?ml$
|
||||
|
|
6
Makefile
6
Makefile
|
@ -2,7 +2,7 @@
|
|||
|
||||
all: check test
|
||||
|
||||
test: test-negative test-positive test-hooks
|
||||
test: test-negative test-positive
|
||||
|
||||
.PHONY: test-positive
|
||||
test-positive:
|
||||
|
@ -16,10 +16,6 @@ test-negative:
|
|||
@echo "Check multiple files. Should error."
|
||||
./compose-check.sh tests/docker-compose* && { echo 'fail'; exit 1; } || echo 'ok'
|
||||
|
||||
.PHONY: test-hooks
|
||||
test-hooks:
|
||||
pre-commit try-repo . --all-files
|
||||
|
||||
# Installs pre-commit hooks
|
||||
.PHONY: install-hooks
|
||||
install-hooks:
|
||||
|
|
|
@ -0,0 +1,17 @@
|
|||
[build-system]
|
||||
requires = ["release-gitter[builder]"]
|
||||
build-backend = "pseudo_builder"
|
||||
|
||||
[tool.release-gitter]
|
||||
git-url = "https://github.com/docker/compose"
|
||||
version = "v2.23.0"
|
||||
|
||||
format = "docker-compose-{system}-{arch}"
|
||||
# exec = "mv {} docker-compose && chmod +x docker-compose"
|
||||
[tool.release-gitter.map-system]
|
||||
Darwin = "darwin"
|
||||
Windows = "windows"
|
||||
Linux = "linux"
|
||||
[tool.release-gitter.map-arch]
|
||||
arm64 = "aarch64"
|
||||
amd64 = "x86_64"
|
Loading…
Reference in New Issue