Skip to content
Snippets Groups Projects
Commit de3a223c authored by Thibault Debatty's avatar Thibault Debatty
Browse files

prepare for automatic build

parent 449bd5f1
No related branches found
No related tags found
No related merge requests found
Pipeline #10398 failed
stages:
- test
- build
- release
......@@ -18,6 +19,26 @@ test:doctest:
script:
- python -m doctest -v src/dokos/dokos.py
build:
stage: build
image: python:3.10
rules:
- if: $CI_COMMIT_TAG
artifacts:
paths:
- pyproject.toml
- dist
before_script:
# install envsubst
# python:3.10 is based on debian bullseye
- apt-get install -y gettext-base
- apt-get install -y python3-venv
- python3 -m pip install --upgrade build
script:
# create the new docker-compose
- envsubst < pyproject.tmpl > pyproject.toml
- python3 -m build
release:
stage: release
image: registry.gitlab.com/gitlab-org/release-cli:latest
......
File moved
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment