Create .drone.yml

This commit is contained in:
Florian Kaiser 2022-02-19 23:22:04 +01:00 committed by GitHub
parent f1375661a7
commit f1a1ebd8e1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

27
.drone.yml Normal file
View File

@ -0,0 +1,27 @@
kind: pipeline
type: docker
name: linux-amd64
platform:
arch: amd64
os: linux
steps:
- name: generate_tag
image: golang
commands:
- echo -n "${DRONE_BRANCH//\//-}-${DRONE_COMMIT_SHA:0:8}, latest" > .tags
- name: publish
image: plugins/docker
settings:
username:
from_secret: username
password:
from_secret: password
registry:
from_secret: registry
repo:
from_secret: repo
dockerfile: Dockerfile