2021-07-05 19:42:30 +02:00
|
|
|
---
|
2021-07-05 19:37:05 +02:00
|
|
|
# SPDX-FileCopyrightText: WTF Kooperative eG <https://wtf-eg.de/>
|
|
|
|
#
|
|
|
|
# SPDX-License-Identifier: AGPL-3.0-or-later
|
2021-06-15 18:31:39 +02:00
|
|
|
kind: pipeline
|
|
|
|
type: docker
|
|
|
|
name: default
|
|
|
|
|
|
|
|
steps:
|
2021-06-27 16:44:42 +02:00
|
|
|
- name: qa
|
|
|
|
image: registry.wtf-eg.net/ki-backend-builder:1.0.0
|
2021-06-15 18:31:39 +02:00
|
|
|
commands:
|
|
|
|
- pipenv install --dev
|
|
|
|
- pipenv run flake8
|
2021-07-05 19:43:23 +02:00
|
|
|
- pipenv run reuse lint
|
2021-06-15 18:31:39 +02:00
|
|
|
- pipenv run python -m unittest discover ki
|
2021-06-27 16:39:42 +02:00
|
|
|
|
|
|
|
- name: docker-publish
|
|
|
|
image: plugins/docker
|
|
|
|
settings:
|
|
|
|
registry: registry.wtf-eg.net
|
|
|
|
repo: registry.wtf-eg.net/ki-backend
|
|
|
|
target: ki-backend
|
|
|
|
auto_tag: true
|
|
|
|
username:
|
|
|
|
from_secret: "docker_username"
|
|
|
|
password:
|
|
|
|
from_secret: "docker_password"
|
2021-10-10 19:55:59 +02:00
|
|
|
when:
|
2022-02-28 19:19:53 +01:00
|
|
|
event:
|
|
|
|
- push
|
2021-10-10 19:55:59 +02:00
|
|
|
branch:
|
|
|
|
- main
|
2021-06-27 16:44:42 +02:00
|
|
|
|
2022-02-28 19:28:35 +01:00
|
|
|
- name: docker-publish-tag
|
|
|
|
image: plugins/docker
|
|
|
|
settings:
|
|
|
|
registry: registry.wtf-eg.net
|
|
|
|
repo: registry.wtf-eg.net/ki-backend
|
|
|
|
target: ki-backend
|
|
|
|
auto_tag: true
|
|
|
|
username:
|
|
|
|
from_secret: "docker_username"
|
|
|
|
password:
|
|
|
|
from_secret: "docker_password"
|
|
|
|
when:
|
|
|
|
event:
|
|
|
|
- tag
|
|
|
|
|
2021-06-27 16:44:42 +02:00
|
|
|
image_pull_secrets:
|
|
|
|
- dockerconfig
|