-
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.
Merge pull request #89 from rhobs/coleenquadros-patch-2
Add Alertmanager workflow and additional step to update PR
- Loading branch information
Showing
7 changed files
with
210 additions
and
30 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,45 @@ | ||
name: ACM Alertmanager merger | ||
|
||
on: | ||
workflow_dispatch: | ||
schedule: | ||
- cron: '0 0 * * 1' #@weekly | ||
pull_request: | ||
paths: | ||
- '.github/workflows/merge-acm-flow.yaml' | ||
- '.github/workflows/merge-acm-alertmanager.yaml' | ||
push: | ||
paths: | ||
- '.github/workflows/merge-acm-flow.yaml' | ||
- '.github/workflows/merge-acm-alertmanager.yaml' | ||
|
||
jobs: | ||
alertmanager-merge: | ||
uses: ./.github/workflows/merge-acm-flow.yaml | ||
with: | ||
upstream: prometheus/alertmanager | ||
downstream: stolostron/prometheus-alertmanager | ||
sandbox: rhobs/acm-prometheus-alertmanager | ||
go-version: "1.22" | ||
restore-upstream: >- | ||
CHANGELOG.md | ||
VERSION | ||
go.mod | ||
go.sum | ||
assets-cmd: | | ||
# Only compress assets if assets actually changed | ||
# The git diff relies on gits remote naming. The merge-flow checks out | ||
# $downstream as origin at the time of writing this code. | ||
if ! git diff --exit-code origin/master ui/react-app; then | ||
make assets-compress | ||
find ui/react-app -type f -name '*.gz' -exec git add {} \; | ||
git add ui/react-app/embed.go | ||
git diff --cached --exit-code || git commit -s -m "[bot] assets: generate" | ||
fi | ||
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 }} |
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
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,35 @@ | ||
name: ACM kube-state-metrics merger | ||
|
||
on: | ||
workflow_dispatch: | ||
schedule: | ||
- cron: '0 0 * * 1' #@weekly | ||
pull_request: | ||
paths: | ||
- '.github/workflows/merge-acm-flow.yaml' | ||
- '.github/workflows/merge-acm-kube-state-metrics.yaml' | ||
push: | ||
paths: | ||
- '.github/workflows/merge-acm-flow.yaml' | ||
- '.github/workflows/merge-acm-kube-state-metrics.yaml' | ||
|
||
jobs: | ||
kube-state-metrics-merge: | ||
uses: ./.github/workflows/merge-acm-flow.yaml | ||
with: | ||
upstream: kubernetes/kube-state-metrics | ||
downstream: stolostron/kube-state-metrics | ||
sandbox: rhobs/acm-kube-state-metrics | ||
go-version: "1.21" | ||
restore-upstream: >- | ||
CHANGELOG.md | ||
VERSION | ||
restore-downstream: >- | ||
OWNERS | ||
docs | ||
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 }} |
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,36 @@ | ||
name: ACM Node exporter merger | ||
|
||
on: | ||
workflow_dispatch: | ||
schedule: | ||
- cron: '0 0 * * 1' #@weekly | ||
pull_request: | ||
paths: | ||
- '.github/workflows/merge-acm-flow.yaml' | ||
- '.github/workflows/merge-acm-node-exporter.yaml' | ||
push: | ||
paths: | ||
- '.github/workflows/merge-acm-flow.yaml' | ||
- '.github/workflows/merge-acm-node-exporter.yaml' | ||
jobs: | ||
node-exporter-merge: | ||
uses: ./.github/workflows/merge-acm-flow.yaml | ||
with: | ||
upstream: prometheus/node_exporter | ||
downstream: stolostron/node-exporter | ||
sandbox: rhobs/acm-node-exporter | ||
go-version: "1.21" | ||
restore-downstream: >- | ||
OWNERS | ||
restore-upstream: >- | ||
CHANGELOG.md | ||
VERSION | ||
collector | ||
go.mod | ||
go.sum | ||
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 }} |
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
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
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,40 @@ | ||
name: ACM Thanos merger | ||
|
||
on: | ||
workflow_dispatch: | ||
schedule: | ||
- cron: '0 0 * * 1' #@weekly | ||
pull_request: | ||
paths: | ||
- '.github/workflows/merge-acm-flow.yaml' | ||
- '.github/workflows/merge-acm-thanos.yaml' | ||
push: | ||
paths: | ||
- '.github/workflows/merge-acm-flow.yaml' | ||
- '.github/workflows/merge-acm-thanos.yaml' | ||
jobs: | ||
thanos-merge: | ||
uses: ./.github/workflows/merge-acm-flow.yaml | ||
with: | ||
upstream: thanos-io/thanos | ||
downstream: stolostron/thanos | ||
sandbox: rhobs/acm-thanos | ||
go-version: "1.22" | ||
restore-downstream: >- | ||
OWNERS | ||
restore-upstream: >- | ||
CHANGELOG.md | ||
VERSION | ||
docs | ||
go.mod | ||
go.sum | ||
pkg | ||
tutorials | ||
.busybox-versions | ||
.devcontainer | ||
secrets: | ||
pr-app-id: ${{ secrets.APP_ID }} | ||
pr-app-private-key: ${{ secrets.APP_PRIVATE_KEY }} | ||
cloner-app-id: ${{ secrets.CLONER_APP_ID }} | ||
cloner-app-private-key: ${{ secrets.CLONER_APP_PRIVATE_KEY }} | ||
slack-webhook-url: ${{ secrets.SLACK_WEBHOOK_URL }} |