Files
docker-seafile-client/.gitlab-ci.yml
flow.gunso f25b0182d2 Version 3
Support for multiple libraries synchronization (#44, #43, #41)
Support for Docker Secrets (#25)
Support for Seafile client's version through Docker tags (#9)
Mock Seafile server for testings (#6)
Revised project layout and workflow (#38, #39)
Working Docker Hub description publishing (#10)
2024-03-16 21:58:04 +00:00

103 lines
1.5 KiB
YAML

image: docker:latest
services:
- docker:dind
.parallel:
parallel:
matrix:
- TARGET: [oldstable, stable, unstable]
stages:
- build
- test
- release
before_script:
- apk add bash git curl jq make
build:
stage: build
script:
- make build
- make save
extends: .parallel
only:
- merge_requests
- tags
artifacts:
paths:
- "tarballs/"
test:
stage: test
script:
- make load
- make build-test
- make test
extends: .parallel
needs:
- job: build
parallel:
matrix:
- TARGET: oldstable
- TARGET: stable
- TARGET: unstable
only:
- merge_requests
- tags
artifacts:
paths:
- tarballs/
publish-images:
stage: release
script:
- make load
- make publish-images
needs:
- job: build
parallel:
matrix:
- TARGET: oldstable
- TARGET: stable
- TARGET: unstable
- job: test
extends: .parallel
only:
- tags
artifacts:
paths:
- tarballs/
- versions/*
make-documents:
stage: release
script:
- apk add py3-jinja2
- make documents
needs:
- job: publish-images
parallel:
matrix:
- TARGET: oldstable
- TARGET: stable
- TARGET: unstable
only:
- tags
artifacts:
paths:
- versions/*
- documentations/*.md
publish-documents:
stage: release
script:
- make publish-documents
needs:
- job: make-documents
only:
- tags
artifacts:
paths:
- documentations/*.md