ci: Add CI/CD template
This commit is contained in:
parent
8ae2d4735a
commit
628a88f1fe
1 changed files with 35 additions and 0 deletions
35
.drone.yml
Normal file
35
.drone.yml
Normal file
|
@ -0,0 +1,35 @@
|
||||||
|
---
|
||||||
|
kind: pipeline
|
||||||
|
name: test
|
||||||
|
|
||||||
|
steps:
|
||||||
|
- name: test
|
||||||
|
image: osshelp/drone-molecule
|
||||||
|
environment:
|
||||||
|
LXD_REMOTE_PASSWORD:
|
||||||
|
from_secret: lxd_remote_password
|
||||||
|
settings:
|
||||||
|
action: test
|
||||||
|
|
||||||
|
---
|
||||||
|
kind: pipeline
|
||||||
|
name: publish
|
||||||
|
|
||||||
|
depends_on: [test]
|
||||||
|
trigger:
|
||||||
|
status: [success]
|
||||||
|
event: [push, tag]
|
||||||
|
ref:
|
||||||
|
- refs/heads/*
|
||||||
|
- refs/tags/*
|
||||||
|
|
||||||
|
steps:
|
||||||
|
- name: publish
|
||||||
|
image: osshelp/drone-molecule
|
||||||
|
environment:
|
||||||
|
MINIO_USER:
|
||||||
|
from_secret: minio_user
|
||||||
|
MINIO_SECRET:
|
||||||
|
from_secret: minio_secret
|
||||||
|
settings:
|
||||||
|
action: upload
|
Loading…
Reference in a new issue