AnthoLume/.drone.yml

41 lines
755 B
YAML
Raw Normal View History

2023-10-24 00:33:56 +00:00
kind: pipeline
type: kubernetes
name: default
steps:
2023-10-24 11:39:37 +00:00
# Unit Tests
2023-10-24 00:33:56 +00:00
- name: unit test
image: golang
commands:
- make tests_unit
2023-10-24 11:39:37 +00:00
# Integration Tests (Every Month)
2023-10-24 00:33:56 +00:00
- name: integration test
image: golang
commands:
- make tests_integration
when:
event:
- cron
cron:
- integration-test
2023-10-24 11:39:37 +00:00
2024-01-20 20:28:53 +00:00
# Fetch tags
- name: fetch tags
image: alpine/git
commands:
- git fetch --tags
# Publish docker image
- name: publish docker
2023-10-24 11:39:37 +00:00
image: plugins/docker
settings:
2023-11-04 23:40:32 +00:00
repo: gitea.va.reichard.io/evan/antholume
2023-10-24 11:39:37 +00:00
registry: gitea.va.reichard.io
tags:
- dev
username:
from_secret: docker_username
password:
from_secret: docker_password