79 lines
1.6 KiB
YAML
79 lines
1.6 KiB
YAML
---
|
|
kind: pipeline
|
|
name: coopcloud.tech/abra
|
|
steps:
|
|
# - name: run gofmt
|
|
# image: golang:1.20
|
|
# commands:
|
|
# - make check
|
|
|
|
# - name: build binaries
|
|
# image: golang:1.20
|
|
# commands:
|
|
# - make check
|
|
# depends_on:
|
|
# - run gofmt
|
|
|
|
# - name: run unit tests
|
|
# image: golang:1.20
|
|
# commands:
|
|
# - make test
|
|
# depends_on:
|
|
# - run gofmt
|
|
|
|
- name: run integration tests
|
|
image: decentral1se/abra-int-test:latest
|
|
commands:
|
|
- bats tests/integration/integration.bats
|
|
# depends_on:
|
|
# - run gofmt
|
|
|
|
# - name: fetch all tags
|
|
# image: docker:git
|
|
# commands:
|
|
# - git fetch --tags
|
|
# depends_on:
|
|
# - run gofmt
|
|
# - build binaries
|
|
# - run unit tests
|
|
# - run integration tests
|
|
# when:
|
|
# event: tag
|
|
|
|
# - name: publish release
|
|
# image: goreleaser/goreleaser:v1.18.2
|
|
# environment:
|
|
# GITEA_TOKEN:
|
|
# from_secret: goreleaser_gitea_token
|
|
# volumes:
|
|
# - name: deps
|
|
# path: /go
|
|
# commands:
|
|
# - goreleaser release
|
|
# depends_on:
|
|
# - fetch all tags
|
|
# when:
|
|
# 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:
|
|
# - run gofmt
|
|
# - build binaries
|
|
|
|
# volumes:
|
|
# - name: deps
|
|
# temp: {}
|