This repository has been archived on 2023-02-09. You can view files and clone it, but cannot push or open issues or pull requests.
drone-ansible-runner/.drone.yml
SebClem ee3c2731e1
All checks were successful
continuous-integration/drone/push Build is passing
continuous-integration/drone Build is passing
🚑 Fix pipeline
2021-12-15 09:49:11 +01:00

41 lines
833 B
YAML

name: Build Docker
kind: pipeline
type: docker
steps:
- name: Only build image
image: plugins/docker
settings:
username:
from_secret: docker_username
password:
from_secret: docker_password
repo: harbor.sebclem.fr/sebclem/drone-ansible-runner
registry: harbor.sebclem.fr
tags: latest
dry_run: true
when:
target:
exclude:
- production
- name: Build and Push docker
image: plugins/docker
settings:
username:
from_secret: docker_username
password:
from_secret: docker_password
repo: harbor.sebclem.fr/sebclem/drone-ansible-runner
registry: harbor.sebclem.fr
tags: latest
when:
target:
- production
trigger:
event:
- push
- custom
- promote
- rollback