Skip to content

Commit

Permalink
Add ACM Grafana config
Browse files Browse the repository at this point in the history
Allows us to use syncbot with ACM Grafana.

Signed-off-by: Jacob Baungard Hansen <jacobbaungard@redhat.com>
  • Loading branch information
jacobbaungard committed Sep 18, 2024
1 parent 7813eda commit b5e6bd0
Showing 1 changed file with 62 additions and 0 deletions.
62 changes: 62 additions & 0 deletions .github/workflows/merge-acm-grafana.yaml
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 }}

0 comments on commit b5e6bd0

Please sign in to comment.