-
Notifications
You must be signed in to change notification settings - Fork 10
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Allows us to use syncbot with ACM Grafana. Signed-off-by: Jacob Baungard Hansen <jacobbaungard@redhat.com>
- Loading branch information
1 parent
7813eda
commit b5e6bd0
Showing
1 changed file
with
62 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,62 @@ | ||
name: ACM Grafana merger | ||
|
||
on: | ||
workflow_dispatch: | ||
schedule: | ||
- cron: '0 0 * * 1' #@weekly | ||
pull_request: | ||
paths: | ||
- '.github/workflows/merge-acm-flow.yaml' | ||
- '.github/workflows/merge-acm-grafana.yaml' | ||
push: | ||
paths: | ||
- '.github/workflows/merge-acm-flow.yaml' | ||
- '.github/workflows/merge-acm-grafana.yaml' | ||
jobs: | ||
grafana-merge: | ||
uses: ./.github/workflows/merge-acm-flow.yaml | ||
with: | ||
upstream: grafana/grafana | ||
downstream: stolostron/grafana | ||
sandbox: rhobs/acm-grafana | ||
go-version: "1.22" | ||
node-version: "20" | ||
restore-downstream: >- | ||
OWNERS | ||
.github | ||
restore-upstream: >- | ||
.drone.yml | ||
CHANGELOG.md | ||
docs | ||
go.mod | ||
go.sum | ||
go.work | ||
go.work.sum | ||
pkg | ||
lerna.json | ||
package.json | ||
packages | ||
public/app/ | ||
yarn.lock | ||
assets-cmd: | | ||
# generate nodejs files | ||
# Don't use too much heap | ||
export NODE_OPTIONS="--max_old_space_size=4096" | ||
yarn install --immutable | ||
# get rid of old assets | ||
rm -rf ./public/build/ | ||
NODE_ENV=production yarn build | ||
# Generate go files with wire | ||
go mod download | ||
go run ./pkg/build/wire/cmd/wire/main.go gen -tags oss ./pkg/server | ||
# Commit assets | ||
git add pkg/server/wire_gen.go ./public/build ./public/app/plugins/datasource/*/dist/* | ||
git diff --cached --exit-code || git commit -s -m "[bot] assets: generate" | ||
secrets: | ||
pr-app-id: ${{ secrets.ACM_APP_ID }} | ||
pr-app-private-key: ${{ secrets.ACM_APP_PRIVATE_KEY }} | ||
cloner-app-id: ${{ secrets.ACM_CLONER_APP_ID }} | ||
cloner-app-private-key: ${{ secrets.ACM_CLONER_APP_PRIVATE_KEY }} | ||
slack-webhook-url: ${{ secrets.ACM_SLACK_WEBHOOK_URL }} |