diff --git a/.drone.yml b/.drone.yml index d56c3bf..8dc1e44 100644 --- a/.drone.yml +++ b/.drone.yml @@ -1,11 +1,41 @@ +--- kind: pipeline name: test steps: - - name: build - image: golang:1.12 + - name: test + image: golang:1.15 commands: - - make build + - make test + + - name: check + image: python:3 + commands: + - pip install docker-compose pre-commit + - wget -L -O /usr/bin/hadolint https://github.com/hadolint/hadolint/releases/download/v1.18.0/hadolint-Linux-x86_64 + - chmod +x /usr/bin/hadolint + - make check + + # - name: itest + # image: docker/compose:alpine-1.26.2 + # environment: + # VERSION: ${DRONE_TAG:-${DRONE_COMMIT}} + # commands: + # - apk add make bash + # - make itest + + - name: notify + image: drillster/drone-email + settings: + host: + from_secret: SMTP_HOST # pragma: whitelist secret + username: + from_secret: SMTP_USER # pragma: whitelist secret + password: + from_secret: SMTP_PASS # pragma: whitelist secret + from: drone@iamthefij.com + when: + status: [changed, failure] --- kind: pipeline diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 02e83ec..df99911 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -18,4 +18,4 @@ repos: rev: v2.0.0 hooks: - id: docker-compose-check - - id: hadolint + - id: hadolint-system