runtime/.drone.yml
Adam Štrauch 82c648b7cd
Some checks reported errors
continuous-integration/drone Build encountered an error
Debian 12, new version of everything, switch to task
2023-08-12 14:16:21 +02:00

48 lines
889 B
YAML

kind: pipeline
type: docker
name: image building
steps:
- name: build&push squashed image
image: harbor.hq.rosti.cz/library/builder:38
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
- task push
trigger:
event:
- promote
target:
- production
---
kind: pipeline
type: docker
name: test image
steps:
- name: test build
image: harbor.hq.rosti.cz/library/builder:38
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
- task build VERSION=test
- task testVERSION=test
trigger:
event:
exclude:
- promote