borgmatic/.drone.yml

62 lines
1.4 KiB
YAML
Raw Normal View History

kind: pipeline
name: python-3-8-alpine-3-13
services:
2019-12-11 00:43:43 +00: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 21:18:50 +00:00
- name: mongodb
image: mongo:5.0.5
environment:
MONGO_INITDB_ROOT_USERNAME: root
MONGO_INITDB_ROOT_PASSWORD: test
clone:
2021-10-04 20:14:19 +00:00
skip_verify: true
2019-11-02 23:38:50 +00:00
steps:
- name: build
image: alpine:3.13
2023-03-28 19:03:12 +00:00
environment:
TEST_CONTAINER: true
2019-11-02 23:38:50 +00:00
pull: always
commands:
- scripts/run-full-tests
2019-11-02 23:38:50 +00:00
---
kind: pipeline
name: documentation
clone:
skip_verify: true
steps:
- name: build
2023-04-20 06:16:15 +00:00
image: quay.io/podman/stable
environment:
USERNAME:
from_secret: docker_username
PASSWORD:
from_secret: docker_password
IMAGE_NAME: projects.torsion.org/borgmatic-collective/borgmatic:docs
commands:
2023-04-20 18:53:52 +00:00
- echo "podman:100000:100000" > /etc/subuid
- echo "podman:100000:100000" > /etc/subgid
- podman login --username "$USERNAME" --password "$PASSWORD" projects.torsion.org
2023-04-20 18:58:06 +00:00
- podman build --security-opt label=disable --isolation chroot --userns-uid-map-user podman --userns-gid-map-group podman --tag "$IMAGE_NAME" --file docs/Dockerfile
- podman push "$IMAGE_NAME"
trigger:
repo:
- borgmatic-collective/borgmatic
branch:
- main
event:
- push