2021-11-07 18:01:18 +00:00
|
|
|
---
|
|
|
|
kind: pipeline
|
|
|
|
type: docker
|
|
|
|
name: default
|
|
|
|
|
|
|
|
platform:
|
|
|
|
os: linux
|
|
|
|
arch: amd64
|
|
|
|
|
|
|
|
steps:
|
|
|
|
- name: test
|
2022-04-18 16:46:44 +01:00
|
|
|
image: public.ecr.aws/docker/library/golang:1.18-alpine3.15
|
2021-11-07 18:01:18 +00:00
|
|
|
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
|
|
|
|
|
|
|
|
...
|