Skip to content

Commit

Permalink
Bug Fix: release process cosign step
Browse files Browse the repository at this point in the history
Signed-off-by: Itay Grudev <[email protected]>
  • Loading branch information
itay-grudev committed Mar 23, 2024
1 parent 2e8f8b1 commit eb44713
Show file tree
Hide file tree
Showing 2 changed files with 25 additions and 25 deletions.
48 changes: 24 additions & 24 deletions .github/workflows/release-publish-grafana.yml
Original file line number Diff line number Diff line change
@@ -1,24 +1,24 @@
#name: release-publish-grafana
#
#on:
# push:
# branches:
# - main
# paths:
# - 'charts/cluster/grafana-dashboard.json'
#
#jobs:
# release:
# runs-on: ubuntu-22.04
# steps:
# - name: Checkout
# uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1
# with:
# fetch-depth: 0 # important for fetching all history to run comparison against
#
# - name: Push dashboard to Grafana.com
# env:
# DASHBOARD_ID: 20417
# GRAFANA_COM_TOKEN: ${{secrets.GRAFANA_COM_TOKEN}}
# run: |
# 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
name: release-publish-grafana

on:
push:
branches:
- main
paths:
- 'charts/cluster/grafana-dashboard.json'

jobs:
release:
runs-on: ubuntu-22.04
steps:
- name: Checkout
uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1
with:
fetch-depth: 0 # important for fetching all history to run comparison against

- name: Push dashboard to Grafana.com
env:
DASHBOARD_ID: 20417
GRAFANA_COM_TOKEN: ${{secrets.GRAFANA_COM_TOKEN}}
run: |
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
2 changes: 1 addition & 1 deletion .github/workflows/release-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ jobs:
# would be preserved, causing a non-zero exit. Set nullglob to fix this
run: |
shopt -s nullglob
for pkg in .cr-release-packages/*; do
for pkg in .cr-release-packages/*.tgz; do
if [ -z "${pkg:-}" ]; then
break
fi
Expand Down

0 comments on commit eb44713

Please sign in to comment.