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.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
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
File details
Details for the file gitlabbot-0.2.8.tar.gz
.
File metadata
- Download URL: gitlabbot-0.2.8.tar.gz
- Upload date:
- Size: 7.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/5.1.1 CPython/3.12.7
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 07bc96e52ffdf6dadce2d64e5397c58d8d5d5692ba90078f1833a1ac59cdd966 |
|
MD5 | a4c8130de67649ab2f00b344685b71d6 |
|
BLAKE2b-256 | 9e8ccd2a8b85e41cccf83a80b2878b5d5e0d0d41996f5c33d6a07343e7445b64 |
Provenance
The following attestation bundles were made for gitlabbot-0.2.8.tar.gz
:
Publisher:
publish.yaml
on Alexsaphir/GitlabBot
-
Statement type:
https://in-toto.io/Statement/v1
- Predicate type:
https://docs.pypi.org/attestations/publish/v1
- Subject name:
gitlabbot-0.2.8.tar.gz
- Subject digest:
07bc96e52ffdf6dadce2d64e5397c58d8d5d5692ba90078f1833a1ac59cdd966
- Sigstore transparency entry: 149880499
- Sigstore integration time:
- Predicate type:
File details
Details for the file gitlabbot-0.2.8-py3-none-any.whl
.
File metadata
- Download URL: gitlabbot-0.2.8-py3-none-any.whl
- Upload date:
- Size: 9.6 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/5.1.1 CPython/3.12.7
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 8ad3dfdcbe8d6d5873cd020d3d47384abdb5c3d2eaad7147412f34199c7a970c |
|
MD5 | 9ddfb3dcca9675fbd3dddea73c1c22cc |
|
BLAKE2b-256 | 38232aeb4f0db91f989842d31cd9d71c0101a79f89b54acd2b1977d951e2082a |
Provenance
The following attestation bundles were made for gitlabbot-0.2.8-py3-none-any.whl
:
Publisher:
publish.yaml
on Alexsaphir/GitlabBot
-
Statement type:
https://in-toto.io/Statement/v1
- Predicate type:
https://docs.pypi.org/attestations/publish/v1
- Subject name:
gitlabbot-0.2.8-py3-none-any.whl
- Subject digest:
8ad3dfdcbe8d6d5873cd020d3d47384abdb5c3d2eaad7147412f34199c7a970c
- Sigstore transparency entry: 149880500
- Sigstore integration time:
- Predicate type: