AnthoLume/.drone.yml
Evan Reichard 43ed4ac350
Some checks failed
continuous-integration/drone/push Build is failing
[add] docker publish
2023-10-24 07:50:50 -04:00

43 lines
844 B
YAML

kind: pipeline
type: kubernetes
name: default
steps:
# Unit Tests
- name: unit test
image: golang
commands:
- make tests_unit
# Integration Tests (Every Month)
- name: integration test
image: golang
commands:
- make tests_integration
when:
event:
- cron
cron:
- integration-test
# Publish Dev Docker Image
- name: publish_docker
image: plugins/docker
settings:
repo: gitea.va.reichard.io/evan/bookmanager
registry: gitea.va.reichard.io
tags:
- dev
username:
from_secret: docker_username
password:
from_secret: docker_password
build_args_from_env:
- TARGETOS
- TARGETARCH
- BUILDPLATFORM
environment:
TARGETOS: linux
TARGETARCH: amd64
BUILDPLATFORM: amd64