Compare commits
9 Commits
Author | SHA1 | Date | |
---|---|---|---|
cc64344845 | |||
48f97b2be8 | |||
b44045a36b | |||
8608819642 | |||
ae78487aef | |||
51085a0a14 | |||
8d153cb5d8 | |||
7d7b1f457d | |||
3b89f4e4be |
57
.drone.yml
Normal file
57
.drone.yml
Normal file
@ -0,0 +1,57 @@
|
||||
kind: pipeline
|
||||
type: docker
|
||||
name: Validate
|
||||
|
||||
steps:
|
||||
- name: Test
|
||||
image: golang:1.20
|
||||
commands:
|
||||
- make test
|
||||
- name: Build
|
||||
image: golang:1.20
|
||||
commands:
|
||||
- make build VERSION="test"
|
||||
---
|
||||
kind: pipeline
|
||||
type: docker
|
||||
name: Publish
|
||||
|
||||
steps:
|
||||
- name: Test
|
||||
image: golang:1.20
|
||||
commands:
|
||||
- make test
|
||||
- name: Build
|
||||
image: golang:1.20
|
||||
commands:
|
||||
- make build $VERSION
|
||||
- name: Example
|
||||
image: golang:1.20
|
||||
environment:
|
||||
USERNAME:
|
||||
from_secret: docker_username
|
||||
commands:
|
||||
- echo "Username is '$USERNAME'"
|
||||
- name: Docker
|
||||
image: plugins/docker
|
||||
settings:
|
||||
username:
|
||||
from_secret: docker_username
|
||||
password:
|
||||
from_secret: docker_password
|
||||
repo: yeslayla/birdbot
|
||||
tags:
|
||||
- latest
|
||||
- $VERSION
|
||||
---
|
||||
kind: secret
|
||||
name: docker_username
|
||||
get:
|
||||
path: secret/cloud/docker
|
||||
name: username
|
||||
---
|
||||
kind: secret
|
||||
name: docker_password
|
||||
get:
|
||||
path: secret/cloud/docker
|
||||
name: password
|
Loading…
Reference in New Issue
Block a user