Remove binary release
This commit is contained in:
parent
4ff8666e66
commit
eda5a1e461
51
.drone.yml
51
.drone.yml
|
@ -28,54 +28,3 @@ steps:
|
|||
from_secret: drone_docker_username
|
||||
password:
|
||||
from_secret: drone_docker_password
|
||||
|
||||
- name: "add binary release to gitea"
|
||||
image: plugins/gitea-release
|
||||
settings:
|
||||
api_key: 5353c40cd692fd01f243b1f935af1962ff03bfd6
|
||||
base_url: https://gitea.linuxcode.net
|
||||
files: cmd/app
|
||||
|
||||
---
|
||||
kind: pipeline
|
||||
type: docker
|
||||
name: default-tag
|
||||
steps:
|
||||
# Build docker image and push to docker hub
|
||||
- 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: "${DRONE_TAG}"
|
||||
username:
|
||||
from_secret: drone_docker_username
|
||||
password:
|
||||
from_secret: drone_docker_password
|
||||
|
||||
- name: "add binary release to gitea"
|
||||
image: plugins/gitea-release
|
||||
settings:
|
||||
api_key: 5353c40cd692fd01f243b1f935af1962ff03bfd6
|
||||
base_url: https://gitea.linuxcode.net
|
||||
files: cmd/app
|
||||
|
||||
trigger:
|
||||
branch:
|
||||
- main
|
||||
event:
|
||||
- tag
|
Loading…
Reference in New Issue