forked from kompetenzinventar/ki-backend
51 lines
1.0 KiB
YAML
51 lines
1.0 KiB
YAML
---
|
|
# SPDX-FileCopyrightText: WTF Kooperative eG <https://wtf-eg.de/>
|
|
#
|
|
# SPDX-License-Identifier: AGPL-3.0-or-later
|
|
kind: pipeline
|
|
type: docker
|
|
name: default
|
|
|
|
steps:
|
|
- name: qa
|
|
image: registry.wtf-eg.net/ki-backend-builder:1.0.0
|
|
commands:
|
|
- pipenv install --dev
|
|
- pipenv run flake8
|
|
- pipenv run reuse lint
|
|
- pipenv run python -m unittest discover ki
|
|
|
|
- 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
|
|
dry_run: true
|
|
username:
|
|
from_secret: "docker_username"
|
|
password:
|
|
from_secret: "docker_password"
|
|
when:
|
|
event:
|
|
- push
|
|
|
|
- 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
|
|
|
|
image_pull_secrets:
|
|
- dockerconfig
|