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

31 lines
673 B
YAML
Raw Normal View History

2023-01-12 13:49:16 +00:00
---
kind: pipeline
type: docker
name: default
steps:
2023-01-12 15:05:24 +00:00
# - name: build
# image: golang:1.19-alpine
# pull: if-not-exists
# commands:
# - go build -o cmd/app ./src/main.go
2023-01-12 13:49:16 +00:00
- name: "lint"
image: golangci/golangci-lint:v1.50
pull: if-not-exists
commands:
2023-01-12 14:35:06 +00:00
- cd src
2023-01-12 13:49:16 +00:00
- golangci-lint run
- name: "build and publish docker image"
image: plugins/docker
2023-06-07 07:45:34 +00:00
pull: if-not-exists
2023-01-12 13:49:16 +00:00
settings:
registry: gitea.linuxcode.net
2023-06-07 07:47:49 +00:00
repo: gitea.linuxcode.net/linuxcode/oapi-type-definitions-extractor
2023-01-12 13:49:16 +00:00
dockerfile: dockerfile
2023-06-07 07:47:49 +00:00
tags: ${DRONE_TAG}
2023-01-12 13:49:16 +00:00
username:
from_secret: drone_docker_username
password:
2023-01-12 13:58:33 +00:00
from_secret: drone_docker_password