Skip to content

Commit eb44713

Browse files
committed
Bug Fix: release process cosign step
Signed-off-by: Itay Grudev <itay.grudev@essentim.com>
1 parent 2e8f8b1 commit eb44713

File tree

2 files changed

+25
-25
lines changed

2 files changed

+25
-25
lines changed
Lines changed: 24 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -1,24 +1,24 @@
1-
#name: release-publish-grafana
2-
#
3-
#on:
4-
# push:
5-
# branches:
6-
# - main
7-
# paths:
8-
# - 'charts/cluster/grafana-dashboard.json'
9-
#
10-
#jobs:
11-
# release:
12-
# runs-on: ubuntu-22.04
13-
# steps:
14-
# - name: Checkout
15-
# uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1
16-
# with:
17-
# fetch-depth: 0 # important for fetching all history to run comparison against
18-
#
19-
# - name: Push dashboard to Grafana.com
20-
# env:
21-
# DASHBOARD_ID: 20417
22-
# GRAFANA_COM_TOKEN: ${{secrets.GRAFANA_COM_TOKEN}}
23-
# run: |
24-
# cat charts/cluster/grafana-dashboard.json | curl -X PATCH -H "Content-Type: application/json" -H "Authorization: Bearer $GRAFANA_COM_TOKEN" --data-binary @- https://grafana.com/api/dashboards/db
1+
name: release-publish-grafana
2+
3+
on:
4+
push:
5+
branches:
6+
- main
7+
paths:
8+
- 'charts/cluster/grafana-dashboard.json'
9+
10+
jobs:
11+
release:
12+
runs-on: ubuntu-22.04
13+
steps:
14+
- name: Checkout
15+
uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1
16+
with:
17+
fetch-depth: 0 # important for fetching all history to run comparison against
18+
19+
- name: Push dashboard to Grafana.com
20+
env:
21+
DASHBOARD_ID: 20417
22+
GRAFANA_COM_TOKEN: ${{secrets.GRAFANA_COM_TOKEN}}
23+
run: |
24+
cat charts/cluster/grafana-dashboard.json | curl -X PATCH -H "Content-Type: application/json" -H "Authorization: Bearer $GRAFANA_COM_TOKEN" --data-binary @- https://grafana.com/api/dashboards/db

.github/workflows/release-publish.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ jobs:
7171
# would be preserved, causing a non-zero exit. Set nullglob to fix this
7272
run: |
7373
shopt -s nullglob
74-
for pkg in .cr-release-packages/*; do
74+
for pkg in .cr-release-packages/*.tgz; do
7575
if [ -z "${pkg:-}" ]; then
7676
break
7777
fi

0 commit comments

Comments
 (0)