Make comment on gitlab using `flux-local` diff outputs.
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.8
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
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.3.0.tar.gz.
File metadata
- Download URL: gitlabbot-0.3.0.tar.gz
- Upload date:
- Size: 60.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.12.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
07158c1176de880ed761eb5dade14f06f454ed38d724864bc5a9fab1c2e91b04
|
|
| MD5 |
09176495401bfde6d8db11ef92e775da
|
|
| BLAKE2b-256 |
d3c230c18dba76afd38fad5bbc33a733202cce403a571855cae2fc88fa473318
|
Provenance
The following attestation bundles were made for gitlabbot-0.3.0.tar.gz:
Publisher:
publish.yaml on Alexsaphir/GitlabBot
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
gitlabbot-0.3.0.tar.gz -
Subject digest:
07158c1176de880ed761eb5dade14f06f454ed38d724864bc5a9fab1c2e91b04 - Sigstore transparency entry: 176548766
- Sigstore integration time:
-
Permalink:
Alexsaphir/GitlabBot@d79adf935ad478efe7f920715bbf18e190d6d108 -
Branch / Tag:
refs/tags/0.3.0 - Owner: https://github.com/Alexsaphir
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yaml@d79adf935ad478efe7f920715bbf18e190d6d108 -
Trigger Event:
release
-
Statement type:
File details
Details for the file gitlabbot-0.3.0-py3-none-any.whl.
File metadata
- Download URL: gitlabbot-0.3.0-py3-none-any.whl
- Upload date:
- Size: 9.4 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.12.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
b314f817ac9721a1b79bd7dfce011a3a1489e3cc741abae254bdd7f8abae4bc9
|
|
| MD5 |
7910a3794eebac68c277b612b7e438f2
|
|
| BLAKE2b-256 |
3fe508481b1d7599e8ff2581563e13371ae0959538c48d5bca850921952bab46
|
Provenance
The following attestation bundles were made for gitlabbot-0.3.0-py3-none-any.whl:
Publisher:
publish.yaml on Alexsaphir/GitlabBot
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
gitlabbot-0.3.0-py3-none-any.whl -
Subject digest:
b314f817ac9721a1b79bd7dfce011a3a1489e3cc741abae254bdd7f8abae4bc9 - Sigstore transparency entry: 176548770
- Sigstore integration time:
-
Permalink:
Alexsaphir/GitlabBot@d79adf935ad478efe7f920715bbf18e190d6d108 -
Branch / Tag:
refs/tags/0.3.0 - Owner: https://github.com/Alexsaphir
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yaml@d79adf935ad478efe7f920715bbf18e190d6d108 -
Trigger Event:
release
-
Statement type: