This commit is contained in:
parent
b8aef52913
commit
0598a26243
19
.drone.yml
19
.drone.yml
@ -3,15 +3,13 @@ type: kubernetes
|
|||||||
name: default
|
name: default
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- name: generate_tags
|
# Unit Tests
|
||||||
image: node
|
|
||||||
commands:
|
|
||||||
- echo -n "${DRONE_BRANCH}-$(date +'%Y%m%d%H%M%S')-${DRONE_COMMIT:0:10}, latest" > .tags
|
|
||||||
- name: unit test
|
- name: unit test
|
||||||
image: golang
|
image: golang
|
||||||
commands:
|
commands:
|
||||||
- make tests_unit
|
- make tests_unit
|
||||||
|
|
||||||
|
# Integration Tests (Every Month)
|
||||||
- name: integration test
|
- name: integration test
|
||||||
image: golang
|
image: golang
|
||||||
commands:
|
commands:
|
||||||
@ -21,3 +19,16 @@ steps:
|
|||||||
- cron
|
- cron
|
||||||
cron:
|
cron:
|
||||||
- integration-test
|
- 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
|
||||||
|
Loading…
Reference in New Issue
Block a user