kustomize-ci/.drone.yml

35 lines
599 B
YAML
Raw Normal View History

2023-02-14 11:58:22 +01:00
kind: pipeline
name: deploy
steps:
- name: docker
image: plugins/docker
settings:
username:
from_secret: DOCKER_USERNAME
password:
from_secret: DOCKER_PASSWORD
repo: aaronriedel/kustomize-ci
tags: latest
when:
branch:
- main
event:
- push
- name: docker-build
image: plugins/docker
settings:
username:
from_secret: DOCKER_USERNAME
password:
from_secret: DOCKER_PASSWORD
repo: aaronriedel/kustomize-ci
tags: latest
dry_run: true
when:
exclude:
branch:
- main
event:
- push