ddnsclient/.drone.yml

41 lines
774 B
YAML
Raw Normal View History

2023-01-31 18:19:26 +01:00
name: default
kind: pipeline
type: docker
steps:
- name: build
image: golang:1.15-alpine
commands:
- go build -v ./...
- name: deploy:gitea-registry
image: plugins/docker
settings:
registry: gitea.antoine-langlois.net
username:
2023-02-10 17:54:56 +01:00
from_secret: GITEA_USERNAME
2023-01-31 18:19:26 +01:00
password:
2023-02-10 17:54:56 +01:00
from_secret: GITEA_TOKEN
2023-01-31 18:19:26 +01:00
repo: DataHearth/ddnsclient
auto_tag: true
when:
event:
2023-02-10 17:54:56 +01:00
- tag
2023-01-31 18:19:26 +01:00
depends_on:
- build
- name: deploy:docker-registry
image: plugins/docker
settings:
username:
2023-02-10 17:54:56 +01:00
from_secret: DOCKER_USERNAME
2023-01-31 18:19:26 +01:00
password:
2023-02-10 17:54:56 +01:00
from_secret: DOCKER_TOKEN
2023-01-31 18:19:26 +01:00
repo: datahearth/ddnsclient
auto_tag: true
when:
event:
2023-02-10 17:54:56 +01:00
- tag
2023-01-31 18:19:26 +01:00
depends_on:
- build