ssl-certs-checker/.drone.yml
2022-12-11 02:54:52 +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.19-alpine3.17
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
...