2021-07-15 13:37:54 +00:00
|
|
|
---
|
|
|
|
kind: pipeline
|
|
|
|
name: coopcloud.tech/abra
|
|
|
|
steps:
|
2021-07-15 21:00:33 +00:00
|
|
|
- name: make check
|
2023-08-09 07:02:07 +00:00
|
|
|
image: golang:1.21
|
2021-07-15 21:00:33 +00:00
|
|
|
commands:
|
|
|
|
- make check
|
|
|
|
|
2021-07-19 13:50:02 +00:00
|
|
|
- name: make test
|
2023-08-09 07:02:07 +00:00
|
|
|
image: golang:1.21
|
2023-09-30 06:26:20 +00:00
|
|
|
environment:
|
|
|
|
ABRA_DIR: "/root/.abra"
|
2021-07-19 13:50:02 +00:00
|
|
|
commands:
|
2023-10-04 12:37:09 +00:00
|
|
|
- make build-abra
|
|
|
|
- ./abra help # show version, initialise $ABRA_DIR
|
2021-07-19 13:50:02 +00:00
|
|
|
- make test
|
2023-02-08 10:13:20 +00:00
|
|
|
depends_on:
|
|
|
|
- make check
|
2021-07-19 13:50:02 +00:00
|
|
|
|
2021-09-06 12:10:08 +00:00
|
|
|
- name: fetch
|
|
|
|
image: docker:git
|
|
|
|
commands:
|
|
|
|
- git fetch --tags
|
|
|
|
depends_on:
|
|
|
|
- make check
|
|
|
|
- make test
|
2021-09-07 05:16:08 +00:00
|
|
|
when:
|
|
|
|
event: tag
|
2021-09-06 12:10:08 +00:00
|
|
|
|
|
|
|
- name: release
|
2023-08-01 17:31:51 +00:00
|
|
|
image: goreleaser/goreleaser:v1.18.2
|
2021-09-06 12:10:08 +00:00
|
|
|
environment:
|
|
|
|
GITEA_TOKEN:
|
2021-09-07 07:04:06 +00:00
|
|
|
from_secret: goreleaser_gitea_token
|
2021-09-06 12:10:08 +00:00
|
|
|
volumes:
|
|
|
|
- name: deps
|
|
|
|
path: /go
|
|
|
|
commands:
|
2023-07-28 22:21:35 +00:00
|
|
|
- goreleaser release
|
2021-09-06 12:10:08 +00:00
|
|
|
depends_on:
|
|
|
|
- fetch
|
|
|
|
when:
|
2023-01-16 01:11:50 +00:00
|
|
|
event: tag
|
2023-01-16 00:52:10 +00:00
|
|
|
|
2023-10-10 05:27:49 +00:00
|
|
|
- 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
|
2021-09-06 12:10:08 +00:00
|
|
|
|
|
|
|
volumes:
|
|
|
|
- name: deps
|
|
|
|
temp: {}
|