Code development platform for open source projects from the European Union institutions :large_blue_circle: EU Login authentication by SMS has been phased out. To see alternatives please check here

Skip to content
Snippets Groups Projects
Commit 4fbf2ab0 authored by Raphael JOIE's avatar Raphael JOIE
Browse files

use standard build job

parent 9cb33b2c
No related branches found
No related tags found
2 merge requests!34Use docker for dev environment,!33Draft: Refactor architecture, but without submodule
...@@ -5,6 +5,9 @@ include: ...@@ -5,6 +5,9 @@ include:
- project: 'digit-c4/dev/openapi-browser' - project: 'digit-c4/dev/openapi-browser'
file: 'gitlab-ci/pages-job.yml' file: 'gitlab-ci/pages-job.yml'
ref: v0.1 ref: v0.1
- project: 'digit-c4/dev/python-best-practices'
file: 'gitlab-ci/build-and-publish-package.yml'
ref: v1.0
default: default:
image: code.europa.eu:4567/digit-c4/dev/python-best-practices/python-poetry:3.11-alpine image: code.europa.eu:4567/digit-c4/dev/python-best-practices/python-poetry:3.11-alpine
...@@ -138,25 +141,22 @@ smithy-job: ...@@ -138,25 +141,22 @@ smithy-job:
- init-job - init-job
needs: needs:
- init-job - init-job
pages: pages:
stage: doc stage: doc
tags:
- docker
- lab
rules: rules:
- if: $CI_COMMIT_BRANCH == "main" - if: $CI_COMMIT_BRANCH == "main"
when: always when: always
- when: manual - when: manual
build-and-publish-package:
stage: delivery
tags: tags:
- docker - docker
- lab - lab
delivery-job:
stage: delivery
before_script:
- python -m venv venv
- source venv/bin/activate
- pip install build twine
script:
- python -m build
- TWINE_PASSWORD=${CI_JOB_TOKEN} TWINE_USERNAME=gitlab-ci-token python -m twine upload --repository-url ${CI_API_V4_URL}/projects/${CI_PROJECT_ID}/packages/pypi dist/*
needs: needs:
- test-static-style-check-job - test-static-style-check-job
- test-e2e - test-e2e
......
...@@ -4,7 +4,7 @@ build-backend = "poetry.core.masonry.api" ...@@ -4,7 +4,7 @@ build-backend = "poetry.core.masonry.api"
[tool.poetry] [tool.poetry]
name = "netbox-rps-plugin" name = "netbox-rps-plugin"
version = "0.13.2" version = "0.14.1"
authors = [ authors = [
"Vincent SIMONIN <vincent.simonin@ext.ec.europa.eu>", "Vincent SIMONIN <vincent.simonin@ext.ec.europa.eu>",
"Raphaël JOIE <raphael.joie@ext.ec.europa.eu>" "Raphaël JOIE <raphael.joie@ext.ec.europa.eu>"
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment