abra/.drone.yml

70 lines
1.2 KiB
YAML
Raw Normal View History

2021-07-15 13:37:54 +00:00
---
kind: pipeline
name: coopcloud.tech/abra
steps:
- name: make check
image: golang:1.20
commands:
- make check
2021-07-15 13:37:54 +00:00
- name: make build
image: golang:1.20
2021-07-15 13:37:54 +00:00
commands:
- make build
depends_on:
- make check
2021-07-15 20:29:31 +00:00
- name: make test
image: golang:1.20
commands:
- make test
depends_on:
- make check
- name: fetch
image: docker:git
commands:
- git fetch --tags
depends_on:
- make check
- make build
- make test
2021-09-07 05:16:08 +00:00
when:
event: tag
- name: release
image: golang:1.20
environment:
GITEA_TOKEN:
from_secret: goreleaser_gitea_token
volumes:
- name: deps
path: /go
commands:
- curl -sL https://git.io/goreleaser | bash
depends_on:
- fetch
when:
2023-01-16 01:11:50 +00:00
event: tag
- name: publish image
image: plugins/docker
settings:
auto_tag: true
username: 3wordchant
password:
from_secret: git_coopcloud_tech_token_3wc
repo: git.coopcloud.tech/coop-cloud/abra
tags: dev
registry: git.coopcloud.tech
when:
event:
exclude:
- pull_request
depends_on:
- make check
volumes:
- name: deps
temp: {}