You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 

107 lines
1.8 KiB

---
clone:
git:
image: plugins/git:next
workspace:
base: /drone
path: src
pipeline:
lint-shell:
image: sevoid/linter:dev
pull: true
group: lint
lint: shell
debug: true
color: always
before_script: |
echo "This is inline script"
touch /tmp/foo
if [[ -f /tmp/foo ]]; then
echo "foo"
fi
path:
- ./scripts/
files:
- ./scripts/bin/lint-*
when:
event: push
branch:
exclude:
- master
- release-*
lint-yaml:
image: sevoid/linter:dev
pull: true
group: lint
lint: yaml
debug: true
color: always
before_script:
- echo "This is list script"
- touch /tmp/bar
- "[[ -f /tmp/bar ]] && echo bar"
files:
- ./.woodpecker.yml
- ./conf/yamllint.yml
- ./.hadolint.yaml
when:
event: push
branch:
exclude:
- master
- release-*
lint-dockerfile:
image: sevoid/linter:dev
pull: true
group: lint
lint: docker
debug: true
when:
event: push
branch:
exclude:
- master
- release-*
build-dev:
image: plugins/docker:linux-amd64
experimental: true
squash: true
secrets:
- docker_username
- docker_password
repo: sevoid/linter
tags:
- dev
- dev-${DRONE_COMMIT:0:7}
when:
event:
- pull_request
branch:
exclude:
- master
- release-*
build-release:
image: plugins/docker:linux-amd64
experimental: true
squash: true
secrets:
- docker_username
- docker_password
repo: sevoid/linter
group: build
tags:
- plugin
- ${DRONE_TAG}
when:
event: tag
branch:
- master
- release-*
# vim:set syntax=yaml ts=2 sw=2 et: