Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
P
Python Binary Wheel Package
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Wiki
Requirements
Jira
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package registry
Container registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
ASTRON Templates
Python Binary Wheel Package
Commits
1d8420dd
Commit
1d8420dd
authored
1 year ago
by
Corné Lukken
Browse files
Options
Downloads
Patches
Plain Diff
CWG-75
: Secure jobs with secrets and raise awareness
parent
3d2edde7
Branches
Branches containing commit
No related tags found
No related merge requests found
Pipeline
#65516
passed with warnings
1 year ago
Stage: prepare
Stage: lint
Stage: test
Stage: package
Stage: integration
Pipeline: Python Binary Wheel Package
#65517
Changes
2
Pipelines
1
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
README.md
+8
-0
8 additions, 0 deletions
README.md
{{cookiecutter.project_slug}}/.gitlab-ci.yml
+15
-0
15 additions, 0 deletions
{{cookiecutter.project_slug}}/.gitlab-ci.yml
with
23 additions
and
0 deletions
README.md
+
8
−
0
View file @
1d8420dd
...
...
@@ -41,6 +41,14 @@ cookiecutter https://git.astron.nl/templates/python-binary-wheel-package.git
# Next follow a set of prompts (such as the name and description of the package)
```
## Gitlab security, secrets and role configuration
When using these templates for a repository on git.astron.nl please read the following
pages to configure Gitlab appropriately:
1.
[
Gitlab Repository Configuration
](
https://git.astron.nl/groups/templates/-/wikis/Gitlab-Repository-Configuration
)
2.
[
Continuous delivery guideline
](
https://git.astron.nl/groups/templates/-/wikis/Continuous%20Delivery%20Guideline
)
## License
This project is licensed under the Apache License Version 2.0
\ No newline at end of file
This diff is collapsed.
Click to expand it.
{{cookiecutter.project_slug}}/.gitlab-ci.yml
+
15
−
0
View file @
1d8420dd
...
...
@@ -155,6 +155,7 @@ publish_on_test_pypi:
when
:
manual
rules
:
-
if
:
$CI_COMMIT_TAG
allow_failure
:
true
script
:
-
echo "run twine for test pypi"
# - |
...
...
@@ -163,6 +164,7 @@ publish_on_test_pypi:
# TODO: replace URL with a pipy URL
# python -m twine upload \
# --repository-url ${CI_API_V4_URL}/projects/${CI_PROJECT_ID}/packages/pypi dist/*
-
exit
1
publish_on_pypi
:
stage
:
publish
...
...
@@ -172,6 +174,7 @@ publish_on_pypi:
when
:
manual
rules
:
-
if
:
$CI_COMMIT_TAG
allow_failure
:
true
script
:
-
echo "run twine for pypi"
# - |
...
...
@@ -180,6 +183,7 @@ publish_on_pypi:
# TODO: replace URL with a pipy URL
# python -m twine upload \
# --repository-url ${CI_API_V4_URL}/projects/${CI_PROJECT_ID}/packages/pypi dist/*
-
exit
1
publish_to_readthedocs
:
stage
:
publish
...
...
@@ -193,3 +197,14 @@ publish_to_readthedocs:
script
:
-
echo "scp docs/* ???"
-
exit
1
release_job
:
stage
:
publish
image
:
registry.gitlab.com/gitlab-org/release-cli:latest
rules
:
-
if
:
'
$CI_COMMIT_TAG
&&
$CI_COMMIT_REF_PROTECTED
==
"true"'
script
:
-
echo "running release_job"
release
:
tag_name
:
'
$CI_COMMIT_TAG'
description
:
'
$CI_COMMIT_TAG'
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