borgmatic/.drone.yml

64 lines
1.2 KiB
YAML
Raw Normal View History

kind: pipeline
name: python-3-8-alpine-3-13
services:
2019-12-11 01:43:43 +01:00
- name: postgresql
image: postgres:13.1-alpine
environment:
POSTGRES_PASSWORD: test
POSTGRES_DB: test
- name: mysql
image: mariadb:10.5
environment:
MYSQL_ROOT_PASSWORD: test
MYSQL_DATABASE: test
2021-12-29 22:18:50 +01:00
- name: mongodb
image: mongo:5.0.5
environment:
MONGO_INITDB_ROOT_USERNAME: root
MONGO_INITDB_ROOT_PASSWORD: test
clone:
2021-10-04 22:14:19 +02:00
skip_verify: true
2019-11-03 00:38:50 +01:00
steps:
- name: build
image: alpine:3.13
2023-03-28 21:03:12 +02:00
environment:
TEST_CONTAINER: true
2019-11-03 00:38:50 +01:00
pull: always
commands:
- scripts/run-full-tests
2019-11-03 00:38:50 +01:00
---
kind: pipeline
name: documentation
type: exec
platform:
os: linux
arch: amd64
clone:
skip_verify: true
steps:
- name: build
environment:
USERNAME:
from_secret: docker_username
PASSWORD:
from_secret: docker_password
IMAGE_NAME: projects.torsion.org/borgmatic-collective/borgmatic:docs
commands:
- podman login --username "$USERNAME" --password "$PASSWORD" projects.torsion.org
2023-04-20 23:19:34 +02:00
- podman build --tag "$IMAGE_NAME" --file docs/Dockerfile --storage-opt "overlay.mount_program=/usr/bin/fuse-overlayfs" .
- podman push "$IMAGE_NAME"
trigger:
repo:
- borgmatic-collective/borgmatic
branch:
- main
event:
- push