59 lines
975 B
YAML
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
|