No project description provided
Project description
GitlabBot
Flux-local
Bot User
Setup your bot account and generate a PAT token.
Then, add the bot to your project with the reporter permission.
Finally , store the pat token in the GITLAB_BOT_PAT CI/CD variable.
CI
You can use the following content to setup GitLab CI to post the diff comment.
---
.flux-local-diff:
stage: flux-local
image:
name: ghcr.io/alexsaphir/gitlabbot:v0.2.6
parallel:
matrix:
- FLUX_RESOURCE:
- hr
- ks
variables:
GIT_DEPTH: "0" # Tells git to fetch all the branches of the project, required by the analysis task
CONFIG_FILE: '.gitlabbot.yaml'
script:
- |
DIFF="dyff between --omit-header --ignore-order-changes -o gitlab" \
flux-local diff $FLUX_RESOURCE -A \
--path $CLUSTER_PATH \
--branch-orig main \
--strip-attrs "helm.sh/chart,checksum/config,app.kubernetes.io/version,chart" \
--output-file out.diff
- |
gitlab-comment --diff_file out.diff \
--flux_resource $FLUX_RESOURCE \
--diff_mode dyff \
--comment_mode $COMMENT_MODE
rules:
- if: $CI_PIPELINE_SOURCE == "merge_request_event"
flux-local-diff:
extends: .flux-local-diff
variables:
CLUSTER_PATH: cluster
COMMENT_MODE: recreate
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
gitlabbot-0.2.6.tar.gz
(7.7 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file gitlabbot-0.2.6.tar.gz.
File metadata
- Download URL: gitlabbot-0.2.6.tar.gz
- Upload date:
- Size: 7.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/5.1.0 CPython/3.12.5
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
1d326e3ad0266a0bff726173ef803526454a881b06695e1d77f2327142695d68
|
|
| MD5 |
64e0acb5fbfcb99757d648e7c891bd31
|
|
| BLAKE2b-256 |
c27b83bec536483cb176858dc5c324f668bf799f8883146e7ac68e0243920647
|
File details
Details for the file gitlabbot-0.2.6-py3-none-any.whl.
File metadata
- Download URL: gitlabbot-0.2.6-py3-none-any.whl
- Upload date:
- Size: 9.6 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/5.1.0 CPython/3.12.5
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
5f3e665ec794d95d18fe1fb497b37d7f9710116cf52569c7cae5767e98acd8b7
|
|
| MD5 |
0f650671d1fd5137ec8b36e92f735a75
|
|
| BLAKE2b-256 |
9db7b240fed670ee84b509a8b45f9ca61c546f845642c2f577325e1fe46d9454
|