27 lines
612 B
YAML
27 lines
612 B
YAML
|
---
|
||
|
kind: pipeline
|
||
|
type: docker
|
||
|
name: build and publish
|
||
|
|
||
|
trigger:
|
||
|
event:
|
||
|
include:
|
||
|
- push
|
||
|
|
||
|
steps:
|
||
|
- name: docker build and publish
|
||
|
image: plugins/docker
|
||
|
environment:
|
||
|
REVISION: ${DRONE_COMMIT_SHA}
|
||
|
CREATED: ${DRONE_BUILD_CREATED}
|
||
|
SOURCE_URL: ${DRONE_GIT_HTTP_URL}
|
||
|
settings:
|
||
|
purge: true
|
||
|
username:
|
||
|
from_secret: dockerhub_user
|
||
|
password:
|
||
|
from_secret: dockerhub_key
|
||
|
repo: varakh/hetzner-storagebox-exporter
|
||
|
tags:
|
||
|
- latest
|