This commit is contained in:
+30
@@ -0,0 +1,30 @@
|
||||
kind: pipeline
|
||||
type: docker
|
||||
name: default
|
||||
|
||||
steps:
|
||||
- name: run tests
|
||||
image: python:3.10-alpine
|
||||
commands:
|
||||
- export POETRY_HOME=/opt/poetry
|
||||
- python3 -m venv $POETRY_HOME
|
||||
- $POETRY_HOME/bin/pip install poetry==1.3.2
|
||||
- $POETRY_HOME/bin/poetry install
|
||||
- $POETRY_HOME/bin/poetry run pytest -s
|
||||
|
||||
- name: publishing
|
||||
image: python:3.10-alpine
|
||||
environment:
|
||||
PYPI_USERNAME:
|
||||
from_secret: PYPI_USERNAME
|
||||
PYPI_PASSWORD:
|
||||
from_secret: PYPI_PASSWORD
|
||||
commands:
|
||||
- export POETRY_HOME=/opt/poetry
|
||||
- python3 -m venv $POETRY_HOME
|
||||
- $POETRY_HOME/bin/pip install poetry==1.3.2
|
||||
- $POETRY_HOME/bin/poetry install
|
||||
- $POETRY_HOME/bin/poetry publish --build --username $PYPI_USERNAME --password $PYPI_PASSWORD
|
||||
when:
|
||||
branch:
|
||||
- main
|
||||
@@ -6,4 +6,6 @@
|
||||
Added the function that gets a list of tags from a repository.
|
||||
** 0.3.0 <2023-06-18 Sun>
|
||||
Added the filter option for a list of tags.
|
||||
** 0.3.1 <2023-06-19 Mon>
|
||||
Added the CI/CD configuration and tests.
|
||||
|
||||
|
||||
+1
-1
@@ -1,6 +1,6 @@
|
||||
[tool.poetry]
|
||||
name = "docker-tags-getter"
|
||||
version = "0.3.0"
|
||||
version = "0.3.1"
|
||||
description = ""
|
||||
authors = ["Kostiantyn Klochko <kostya_klochko@ukr.net>"]
|
||||
readme = "README.rst"
|
||||
|
||||
Reference in New Issue
Block a user