helm-import/build/ci/drone.yml

72 lines
1.3 KiB
YAML
Executable File

kind: pipeline
type: kubernetes
name: linux-amd64-taggedver
platform:
arch: amd64
os: linux
steps:
- name: build
image: golang
commands:
- pwd
- mkdir -p /go/src/git.martyn.berlin/martyn
- ln -s /drone/src /go/src/git.martyn.berlin/martyn/helm-import
- cd /go/src/git.martyn.berlin/martyn/helm-import
- make deps
- make dist
- name: publish
image: plugins/docker:18
settings:
auto_tag: true
auto_tag_suffix: linux-amd64
dockerfile: build/package/Dockerfile
repo: imartyn/helm-import
username:
from_secret: docker_username
password:
from_secret: docker_password
when:
event:
- push
- tag
- name: release
image: plugins/gitea-release
settings:
api_key:
from_secret: gitea_release_token
base_url: https://git.martyn.berlin/
files:
- bin/helm-import-linux-x64
title: Built in CI
prerelease: true
when:
event: tag
trigger:
ref:
- refs/tags/v*
---
kind: pipeline
type: docker
name: linux-amd64-devel-main
platform:
arch: amd64
os: linux
steps:
- name: build
image: golang
commands:
- pwd
- mkdir -p /go/src/git.martyn.berlin/martyn
- ln -s /drone/src /go/src/git.martyn.berlin/martyn/helm-import
- cd /go/src/git.martyn.berlin/martyn/helm-import
- make deps
- make dist