nikola-docker/.drone.yml
Elia el Lazkani fdbe761cb3
All checks were successful
continuous-integration/drone/push Build is passing
continuous-integration/drone/promote/production Build is passing
fix(): Tying a few loose ends
2023-07-01 20:15:20 +02:00

59 lines
975 B
YAML

---
kind: pipeline
name: container-check
steps:
- name: check-build
image: plugins/docker
settings:
registry: scm.project42.io
dockerfile: Dockerfile
username:
from_secret: registry_username
password:
from_secret: registry_password
repo: scm.project42.io/elia/nikola
dry_run: true
squash: true
tags:
- "${DRONE_COMMIT_SHA:0:8}"
trigger:
exclude:
event:
- promote
---
kind: pipeline
name: container-build
steps:
- name: build-latest
image: plugins/docker
settings:
registry: scm.project42.io
dockerfile: Dockerfile
username:
from_secret: registry_username
password:
from_secret: registry_password
repo: scm.project42.io/elia/nikola
dry_run: false
squash: true
tags:
- latest
- "${DRONE_COMMIT_SHA:0:8}"
when:
event:
- promote
target:
- production
depends_on:
- container-check
trigger:
event:
- promote
target:
- production