46 lines
785 B
YAML
46 lines
785 B
YAML
|
---
|
||
|
kind: pipeline
|
||
|
name: default
|
||
|
|
||
|
steps:
|
||
|
- name: fetch
|
||
|
image: docker:git
|
||
|
commands:
|
||
|
- git fetch --tags
|
||
|
|
||
|
- name: lint
|
||
|
image: golang
|
||
|
commands:
|
||
|
- make lint
|
||
|
|
||
|
- name: release
|
||
|
image: goreleaser/goreleaser:latest
|
||
|
volumes:
|
||
|
- name: dockersock
|
||
|
path: /var/run
|
||
|
environment:
|
||
|
GITEA_TOKEN:
|
||
|
from_secret: gitea_token
|
||
|
DOCKER_USERNAME:
|
||
|
from_secret: docker_username
|
||
|
DOCKER_PASSWORD:
|
||
|
from_secret: docker_password
|
||
|
DOCKER_REGISTRY: quay.io
|
||
|
commands:
|
||
|
- sleep 5
|
||
|
- goreleaser release
|
||
|
when:
|
||
|
event: tag
|
||
|
|
||
|
services:
|
||
|
- name: docker
|
||
|
image: docker:dind
|
||
|
privileged: true
|
||
|
volumes:
|
||
|
- name: dockersock
|
||
|
path: /var/run
|
||
|
|
||
|
volumes:
|
||
|
- name: dockersock
|
||
|
temp: {}
|