Adding seafile to CI

This commit is contained in:
Gitouche 2022-02-12 19:18:19 +01:00
parent a4d1b72dec
commit 4995a5ef14
2 changed files with 27 additions and 0 deletions

View file

@ -27,3 +27,12 @@ trigger_matrix:
rules:
- changes:
- podman-matrix/*
trigger_seafile:
stage: triggers
trigger:
include: podman-seafile/.gitlab-ci.yml
strategy: depend
rules:
- changes:
- podman-seafile/*

View file

@ -0,0 +1,18 @@
before_script:
- podman pod exists podman-seafile && podman pod rm --force podman-seafile
- rm -f ~/.config/systemd/user/pod-podman-seafile.service && systemctl --user daemon-reload
- podman volume exists podman-seafile_seafile-db && podman volume rm podman-seafile_seafile-db
- podman volume exists podman-seafile_seafile-data && podman volume rm podman-seafile_seafile-data
seafile:
stage: test
script:
- cd podman-seafile
- GARBAYE_SEAFILE_MYSQL_ROOT_PASSWORD=ecruebdfklj GARBAYE_SEAFILE_ENV_LISTENPORT=18082 ./05_freshinstall.sh
- ./20_enable.sh
- ./30_start.sh && sleep 10
- ./40_stop.sh
- ./70_disable.sh
- ./80_destroy.sh
- podman volume rm podman-seafile_seafile-db
- podman volume rm podman-seafile_seafile-data