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
|
2024-07-07 10:03:43 +00:00
|
|
|
environment:
|
|
|
|
CATL_URL: https://git.coopcloud.tech/coop-cloud/recipes-catalogue-json.git
|
2021-07-19 13:50:02 +00:00
|
|
|
commands:
|
2024-07-07 10:03:43 +00:00
|
|
|
- mkdir -p $HOME/.abra
|
|
|
|
- git clone $CATL_URL $HOME/.abra/catalogue
|
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
|
2024-03-12 09:11:14 +00:00
|
|
|
image: goreleaser/goreleaser:v1.24.0
|
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:
|
2024-07-07 10:21:51 +00:00
|
|
|
branch:
|
|
|
|
- main
|
2023-10-10 05:27:49 +00:00
|
|
|
depends_on:
|
|
|
|
- make check
|
2024-06-28 03:47:55 +00:00
|
|
|
- make test
|
2021-09-06 12:10:08 +00:00
|
|
|
|
2024-07-02 13:51:20 +00:00
|
|
|
- name: integration test
|
|
|
|
image: appleboy/drone-ssh
|
|
|
|
settings:
|
|
|
|
host:
|
|
|
|
- int.coopcloud.tech
|
|
|
|
username: abra
|
|
|
|
key:
|
|
|
|
from_secret: abra_int_private_key
|
|
|
|
port: 22
|
|
|
|
command_timeout: 60m
|
|
|
|
script_stop: true
|
|
|
|
envs: [ DRONE_SOURCE_BRANCH ]
|
|
|
|
request_pty: true
|
|
|
|
script:
|
|
|
|
- |
|
2024-07-03 08:02:04 +00:00
|
|
|
wget https://git.coopcloud.tech/coop-cloud/abra/raw/branch/main/scripts/tests/run-ci-int -O run-ci-int
|
|
|
|
chmod +x run-ci-int
|
|
|
|
sh run-ci-int
|
2024-07-02 13:51:20 +00:00
|
|
|
when:
|
|
|
|
event:
|
|
|
|
- cron:
|
|
|
|
cron:
|
|
|
|
# @daily https://docs.drone.io/cron/
|
|
|
|
- integration
|
|
|
|
|
2021-09-06 12:10:08 +00:00
|
|
|
volumes:
|
|
|
|
- name: deps
|
|
|
|
temp: {}
|