oapi-type-definitions-extra.../.drone.yml

30 lines
645 B
YAML

---
kind: pipeline
type: docker
name: default
steps:
# - name: build
# image: golang:1.19-alpine
# pull: if-not-exists
# commands:
# - go build -o cmd/app ./src/main.go
- name: "lint"
image: golangci/golangci-lint:v1.50
pull: if-not-exists
commands:
- cd src
- golangci-lint run
- name: "build and publish docker image"
image: plugins/docker
settings:
registry: gitea.linuxcode.net
repo: gitea.linuxcode.net/linuxcode/oapi-type-definitions-extractor
dockerfile: dockerfile
tags: latest
username:
from_secret: drone_docker_username
password:
from_secret: drone_docker_password