runtime/.drone.yml
Adam Štrauch 3430a80d0b
All checks were successful
continuous-integration/drone/push Build is passing
continuous-integration/drone Build is passing
Merge test build with test steps
2021-12-04 16:25:58 +01:00

48 lines
932 B
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
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
- make DOCKER=podman VERSION=test test
trigger:
event:
exclude:
- promote