runtime/.drone.yml
Adam Štrauch 631877c1fd
Some checks reported errors
continuous-integration/drone/push Build was killed
continuous-integration/drone Build is passing
continuous-integration/drone/tag Build was killed
Exclude test build when build is promoted
2021-11-20 01:45:02 +01:00

57 lines
1.1 KiB
YAML

kind: pipeline
type: docker
name: image building
steps:
- name: build&push squashed image
image: harbor.hq.rosti.cz/library/builder:35
environment:
username: robot$rosti+rosti
password:
from_secret: repo_password
repo: harbor.hq.rosti.cz
privileged: true
commands:
- echo "$password" | podman login -u $username --password-stdin $repo
- make DOCKER=podman push
trigger:
event:
- promote
target:
- production
---
kind: pipeline
type: docker
name: test image building
steps:
- name: test build
image: harbor.hq.rosti.cz/library/builder:35
environment:
username: robot$rosti+rosti
password:
from_secret: repo_password
repo: harbor.hq.rosti.cz
privileged: true
commands:
- echo "$password" | podman login -u $username --password-stdin $repo
- make VERSION=test DOCKER=podman build
- name: test image
image: harbor.hq.rosti.cz/library/builder:35
environment:
username: robot$rosti+rosti
password:
from_secret: repo_password
repo: harbor.hq.rosti.cz
privileged: true
commands:
- make DOCKER=podman VERSION=test test
trigger:
event:
exclude:
- promote