Skip to content

Instantly share code, notes, and snippets.

View mszostok's full-sized avatar
💭
Hakuna Matata

Mateusz Szostok mszostok

💭
Hakuna Matata
View GitHub Profile
apiVersion: source.toolkit.fluxcd.io/v1
kind: GitRepository
metadata:
name: podinfo
spec:
interval: 5m
url: https://github.com/mszostok/podinfo
ref:
branch: master
---
--set communications.default-group.socketSlack.channels.default.bindings.executors=['plugin-based']
--set 'plugins.repositories.botkube-plugins.url'=${PLUGINS_URL} \
--set 'executors.plugin-based.botkube-plugins/gh.config.github.repository'=${REPOSITORY} \
--set 'executors.plugin-based.botkube-plugins/gh.config.github.token'=${GITHUB_TOKEN} \
export REPOSITORY={repo} # format OWNER/REPO_NAME, e.g. kubeshop/botkube
export GITHUB_TOKEN={token}
export PLUGINS_URL={plugin_index_url}‍
git push
git push --tags
git add -A
git commit -m "Implement gh executor"
git tag v1.0.0
builds:
- id: gh
main: cmd/gh/main.go
binary: executor_gh_{{ .Os }}_{{ .Arch }}
no_unique_dist_dir: true
env:
- CGO_ENABLED=0
goos:
- linux
executors:
"plugin-based":
repo-name/gh:
enabled: true # If not enabled, plugin is not downloaded and started.
config: # Plugin's specific configuration.
github:
repository: "mszostok/repository"
token: "github_pat_foo"
issueTemplate: |
## Description
go mod tidy
@mszostok
mszostok / tag-push
Last active January 31, 2023 10:40
git tag v0.0.1
git push --tags