added yml

This commit is contained in:
Shubham Agrawal
2021-09-27 11:01:36 +05:30
parent 8123ab7679
commit 418c3a9f3a
2 changed files with 24 additions and 2 deletions

22
.drone.yml Normal file
View File

@@ -0,0 +1,22 @@
kind: pipeline
type: docker
name: default
steps:
- name: build
image: golang
commands:
- go test ./...
- sh scripts/build.sh
- name: publish
image: plugins/docker
pull: if-not-exists
settings:
repo: plugins/github-actions
auto_tag: true
dockerfile: docker/Dockerfile.linux.amd64
username:
from_secret: docker_username
password:
from_secret: docker_password