63 lines
1.2 KiB
YAML
63 lines
1.2 KiB
YAML
kind: pipeline
|
|
name: python-3-8-alpine-3-13
|
|
|
|
services:
|
|
- 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
|
|
- name: mongodb
|
|
image: mongo:5.0.5
|
|
environment:
|
|
MONGO_INITDB_ROOT_USERNAME: root
|
|
MONGO_INITDB_ROOT_PASSWORD: test
|
|
|
|
clone:
|
|
skip_verify: true
|
|
|
|
steps:
|
|
- name: build
|
|
image: alpine:3.13
|
|
environment:
|
|
TEST_CONTAINER: true
|
|
pull: always
|
|
commands:
|
|
- scripts/run-full-tests
|
|
---
|
|
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
|
|
- 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
|