ucast/.drone.yml
ThetaDev 3479365c52
All checks were successful
continuous-integration/drone/push Build is passing
publish docker images with ci
2022-07-05 13:56:07 +02:00

62 lines
1.4 KiB
YAML

kind: pipeline
name: default
type: docker
platform:
os: linux
arch: ''
steps:
- name: install dependencies
image: thetadev256/ucast-dev
volumes:
- name: cache
path: /root/.cache
commands:
- poetry install
- poetry run invoke reset
- name: lint
image: thetadev256/ucast-dev
volumes:
- name: cache
path: /root/.cache
commands:
- poetry run invoke lint
depends_on:
- install dependencies
- name: test
image: thetadev256/ucast-dev
volumes:
- name: cache
path: /root/.cache
commands:
- poetry run invoke test
depends_on:
- install dependencies
- name: build container
image: quay.io/buildah/stable
when:
event:
- tag
commands:
- buildah login -u $DOCKER_USER -p $DOCKER_PASS -- $DOCKER_REGISTRY
- buildah manifest create ucast
- buildah bud --tag code.thetadev.de/hsa/ucast:latest --manifest ucast --arch amd64 -f deploy/Dockerfile .
- buildah bud --tag code.thetadev.de/hsa/ucast:latest --manifest ucast --arch arm64 -f deploy/Dockerfile .
- buildah manifest push --all ucast docker://code.thetadev.de/hsa/ucast:latest
environment:
DOCKER_REGISTRY:
from_secret: docker_registry
DOCKER_USER:
from_secret: docker_username
DOCKER_PASS:
from_secret: docker_password
depends_on:
- test
volumes:
- name: cache
temp: { }