gagent/.drone.yml

45 lines
984 B
YAML
Raw Normal View History

---
kind: pipeline
type: docker
name: validation
platform:
2021-03-31 06:17:43 +00:00
arch: amd64
clone:
depth: 1
volumes:
- name: dockersock
host:
path: /run/docker.sock
steps:
- name: Format Code
2021-05-21 19:28:23 -07:00
# image: golang:1.16-alpine3.13
image: golang:1.16.4
# volumes:
# - name: dockersock
# path: /var/run/docker.sock
2021-05-21 19:28:23 -07:00
environment:
# - CGO_ENABLED: 0
commands:
2021-05-21 19:28:23 -07:00
# - apk add --no-cache zeromq-dev build-base git
- go fmt ./...
- go vet ./...
2021-05-21 19:28:23 -07:00
# - curl -sfL https://raw.githubusercontent.com/aquasecurity/trivy/main/contrib/install.sh | sh -s -- -b /usr/local/bin v0.18.2
- trivy repo ${DRONE_GIT_HTTP_URL}
# - name: Send Status To Datadog
# image: masci/drone-datadog
# settings:
# api_key:
# from_secret: Datadog
# events:
# - title: "Build failure on amd64"
# text: "Build ${DRONE_BUILD_NUMBER}"
# alert_type: "error"
# when:
# status:
# - failure
#