ssl-certs-checker/.drone.yml
2022-04-18 23:48:51 +08:00

46 lines
717 B
YAML

---
kind: pipeline
type: docker
name: default
platform:
os: linux
arch: amd64
steps:
- name: test
image: public.ecr.aws/docker/library/golang:1.18-alpine3.15
commands:
- go version
- go fmt ./...
# - go vet ./...
- name: docker-build-dry-run
image: plugins/docker
settings:
repo: guessi/ssl-certs-checker
dry_run: true
auto_tag: true
when:
event:
include:
- pull_request
- name: docker-build
image: plugins/docker
settings:
repo: guessi/ssl-certs-checker
username:
from_secret: docker_username
password:
from_secret: docker_password
auto_tag: true
when:
branch:
- master
event:
exclude:
- pull_request
...