mirror of
https://github.com/zokradonh/kopano-docker.git
synced 2026-08-23 14:22:54 +00:00
add linting for shell scripts and Dockerfiles
* add hadolint for dockerfile linting * add hadofile config * add checks for dockerfiles and shellcheck into makefile * shellcheck fixes * add workaround so that .env can be sourced again from version.sh * hadolint fixes * print progress of build/run.sh * fix check for jq in setup.sh relates to #41 and #26
This commit is contained in:
+7
-5
@@ -10,15 +10,17 @@ env:
|
||||
services:
|
||||
- docker
|
||||
before_install:
|
||||
- sudo curl -L https://github.com/aelsabbahy/goss/releases/download/v$GOSS_VERSION/goss-linux-amd64
|
||||
-o /usr/local/bin/goss
|
||||
- sudo curl -L https://github.com/aelsabbahy/goss/releases/download/v$GOSS_VERSION/dgoss
|
||||
-o /usr/local/bin/dgoss
|
||||
- sudo curl -L https://github.com/aelsabbahy/goss/releases/download/v$GOSS_VERSION/goss-linux-amd64 -o /usr/local/bin/goss
|
||||
- sudo curl -L https://github.com/aelsabbahy/goss/releases/download/v$GOSS_VERSION/dgoss -o /usr/local/bin/dgoss
|
||||
- sudo curl -L https://github.com/hadolint/hadolint/releases/download/v1.16.0/hadolint-$(uname -s)-$(uname -m) -o /usr/local/bin/hadolint
|
||||
- sudo chmod +rx /usr/local/bin/goss
|
||||
- sudo chmod +rx /usr/local/bin/dgoss
|
||||
- sudo chmod +rx /usr/local/bin/hadolint
|
||||
- sudo apt update && sudo apt install -y expect
|
||||
- "./test.exp"
|
||||
install: make build-all
|
||||
install:
|
||||
- make check-scripts
|
||||
- make build-all
|
||||
deploy:
|
||||
- provider: script
|
||||
script: make publish
|
||||
|
||||
Reference in New Issue
Block a user