mirror of
https://github.com/thegeeklab/wp-gitea-release.git
synced 2024-11-22 00:00:41 +00:00
Add drone support
Signed-off-by: Jonas Franz <info@jonasfranz.software>
This commit is contained in:
parent
6710415b8c
commit
ca3dee7248
43
.drone.yml
43
.drone.yml
@ -54,3 +54,46 @@ pipeline:
|
|||||||
# - CGO_ENABLED=0
|
# - CGO_ENABLED=0
|
||||||
# commands:
|
# commands:
|
||||||
# - go build -v -ldflags "-X main.build=${DRONE_BUILD_NUMBER}" -a -o release/windows/amd64/drone-gitea-release
|
# - go build -v -ldflags "-X main.build=${DRONE_BUILD_NUMBER}" -a -o release/windows/amd64/drone-gitea-release
|
||||||
|
|
||||||
|
publish_linux_amd64:
|
||||||
|
image: plugins/docker:17.05
|
||||||
|
pull: true
|
||||||
|
repo: jonasfranz/gitea-release
|
||||||
|
tags: [ latest, 1.0.0, 1.0, 1 ]
|
||||||
|
secrets: [ docker_username, docker_password ]
|
||||||
|
when:
|
||||||
|
branch: master
|
||||||
|
event: push
|
||||||
|
|
||||||
|
publish_linux_arm64:
|
||||||
|
image: plugins/docker:17.05
|
||||||
|
pull: true
|
||||||
|
repo: jonasfranz/gitea-release
|
||||||
|
tags: [ linux-arm64 ]
|
||||||
|
secrets: [ docker_username, docker_password ]
|
||||||
|
dockerfile: Dockerfile.arm64
|
||||||
|
when:
|
||||||
|
branch: master
|
||||||
|
event: push
|
||||||
|
|
||||||
|
publish_linux_arm:
|
||||||
|
image: plugins/docker:17.05
|
||||||
|
pull: true
|
||||||
|
repo: jonasfranz/gitea-release
|
||||||
|
tags: [ linux-arm ]
|
||||||
|
secrets: [ docker_username, docker_password ]
|
||||||
|
dockerfile: Dockerfile.arm
|
||||||
|
when:
|
||||||
|
branch: master
|
||||||
|
event: push
|
||||||
|
|
||||||
|
# publish_windows_amd64:
|
||||||
|
# image: plugins/docker:17.05
|
||||||
|
# pull: true
|
||||||
|
# repo: plugins/github-release
|
||||||
|
# tags: [ windows-amd64 ]
|
||||||
|
# secrets: [ docker_username, docker_password ]
|
||||||
|
# dockerfile: Dockerfile.windows
|
||||||
|
# when:
|
||||||
|
# branch: master
|
||||||
|
# event: push
|
@ -1,4 +1,9 @@
|
|||||||
# drone-gitea-release
|
# drone-gitea-release
|
||||||
|
|
||||||
|
[![Build Status](https://docker.jonasfranz.software/api/badges/JonasFranzDEV/drone-gitea-release/status.svg)](https://docker.jonasfranz.software/JonasFranzDEV/drone-gitea-release)
|
||||||
|
[![Go Doc](https://godoc.org/github.com/JonasFranzDEV/drone-gitea-release?status.svg)](http://godoc.org/github.com/JonasFranzDEV/drone-gitea-release)
|
||||||
|
[![Go Report](https://goreportcard.com/badge/github.com/JonasFranzDEV/drone-gitea-release)](https://goreportcard.com/report/github.com/JonasFranzDEV/drone-gitea-release)
|
||||||
|
|
||||||
This project is "work in progress" and **not** ready for production use.
|
This project is "work in progress" and **not** ready for production use.
|
||||||
|
|
||||||
Drone plugin to publish files and artifacts to Gitea Release.
|
Drone plugin to publish files and artifacts to Gitea Release.
|
||||||
|
@ -8,7 +8,7 @@ import (
|
|||||||
"code.gitea.io/sdk/gitea"
|
"code.gitea.io/sdk/gitea"
|
||||||
)
|
)
|
||||||
|
|
||||||
// Release holds ties the drone env data and github client together.
|
// Release holds ties the drone env data and gitea client together.
|
||||||
type releaseClient struct {
|
type releaseClient struct {
|
||||||
*gitea.Client
|
*gitea.Client
|
||||||
Owner string
|
Owner string
|
||||||
|
Loading…
Reference in New Issue
Block a user