Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
O
Odoo scripts
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Package Registry
Container Registry
Operate
Terraform modules
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
XCG
Odoo scripts
Commits
915e501a337a
Commit
915e501a337a
authored
2 years ago
by
Vincent Hatakeyama
Browse files
Options
Downloads
Patches
Plain Diff
Use CI template for the packaging
parent
2f7a72fea481
No related branches found
Branches containing commit
No related tags found
Tags containing commit
1 merge request
!172
🚀 Use CI template for the packaging
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
.gitlab-ci.yml
+2
-28
2 additions, 28 deletions
.gitlab-ci.yml
with
2 additions
and
28 deletions
.gitlab-ci.yml
+
2
−
28
View file @
915e501a
include
:
-
file
:
python3-lint-needs.gitlab-ci.yaml
project
:
xcg/ci-templates
-
file
:
python-package.gitlab-ci.yaml
project
:
xcg/ci-templates
-
file
:
docker-build.gitlab-ci.yaml
project
:
xcg/ci-templates
-
file
:
deploy-doc.gitlab-ci.yaml
...
...
@@ -70,17 +72,6 @@
variables
:
PIP_CACHE_DIR
:
$CI_PROJECT_DIR/.cache/pip
create_package
:
stage
:
build
image
:
quay.orus.io/xcg/twine
needs
:
[]
script
:
-
pyproject-build
artifacts
:
paths
:
-
dist
expire_in
:
1h
import_jsonrpc_odoo11_test-focal
:
stage
:
test
needs
:
[]
...
...
@@ -226,23 +217,6 @@
-
TAG_COMMIT_SHA="no" DOCKER_BASE_IMAGE_NAME="$TEMP_IMAGE"
DOCKER_IMAGE="xcgd/odoo_scripts" tag-img
publish_package
:
stage
:
deploy
image
:
quay.orus.io/xcg/twine
needs
:
-
job
:
create_package
artifacts
:
true
variables
:
GIT_STRATEGY
:
none
script
:
-
TWINE_PASSWORD=${CI_JOB_TOKEN} TWINE_USERNAME=gitlab-ci-token twine upload
--repository-url ${CI_API_V4_URL}/projects/${CI_PROJECT_ID}/packages/pypi dist/*
rules
:
-
if
:
$CI_COMMIT_BRANCH =~ /^topic\/.*/ || $CI_COMMIT_BRANCH =~ /^branch\/.*/
when
:
manual
allow_failure
:
true
-
if
:
$CI_COMMIT_TAG
release_job
:
stage
:
deploy
image
:
registry.gitlab.com/gitlab-org/release-cli:latest
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment