Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
S
schilder2000
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Wiki
Requirements
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
schilder
schilder2000
Commits
c7392a6d
Commit
c7392a6d
authored
8 months ago
by
Thomas Schneider
Browse files
Options
Downloads
Patches
Plain Diff
Add GitLab CI config
parent
33e67acf
No related branches found
No related tags found
No related merge requests found
Pipeline
#6392
passed
8 months ago
Stage: build
Stage: test
Stage: deploy
Changes
1
Pipelines
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
.gitlab-ci.yml
+73
-0
73 additions, 0 deletions
.gitlab-ci.yml
with
73 additions
and
0 deletions
.gitlab-ci.yml
0 → 100644
+
73
−
0
View file @
c7392a6d
---
variables
:
PDM_CACHE_DIR
:
$CI_PROJECT_DIR/.cache/pdm
npm_config_cache
:
$CI_PROJECT_DIR/.cache/npm
PIP_CACHE_DIR
:
$CI_PROJECT_DIR/.cache/pip
default
:
cache
:
paths
:
-
.cache
.python
:
image
:
python:3.12
before_script
:
-
pip install pdm
-
apt-get update
-
apt-get -y install libldap-dev libsasl2-dev
-
pdm sync --clean
lint-py
:
extends
:
.python
stage
:
test
script
:
-
>-
pdm run
ruff
check
--output-format gitlab
--output-file ruff.json
-
pdm run ruff format --diff
artifacts
:
reports
:
codequality
:
ruff.json
expire_in
:
7 days
build-js
:
image
:
node:20-alpine
stage
:
build
before_script
:
-
npm ci
script
:
-
npm run build
artifacts
:
paths
:
-
schilder2000/static
build-py
:
extends
:
.python
stage
:
build
needs
:
-
job
:
build-js
artifacts
:
true
script
:
-
pdm build -C without-npm
artifacts
:
paths
:
-
dist
publish
:
extends
:
.python
stage
:
deploy
needs
:
-
job
:
build-py
artifacts
:
true
-
job
:
lint-py
artifacts
:
false
variables
:
PDM_PUBLISH_REPO
:
${CI_API_V4_URL}/projects/${CI_PROJECT_ID}/packages/pypi
PDM_PUBLISH_USERNAME
:
gitlab-ci-token
PDM_PUBLISH_PASSWORD
:
${CI_JOB_TOKEN}
script
:
-
pdm publish --no-build
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