Skip to content

chore(deps): bump github.com/prometheus/prometheus in /scripts (#1125) #6

chore(deps): bump github.com/prometheus/prometheus in /scripts (#1125)

chore(deps): bump github.com/prometheus/prometheus in /scripts (#1125) #6

Workflow file for this run

name: Release
on:
push:
tags:
- "version-*" # Trigger the workflow on push events to version-* tags
permissions:
contents: write
jobs:
build:
name: Build Artifact
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
- name: Set up Go
uses: actions/setup-go@44694675825211faa026b3c33043df3e48a5fa00 # v6.0.0
with:
go-version-file: "scripts/go.mod"
- name: Build release archive
run: |
echo "Building Grafana Dashboards, Prometheus Rules and Alerts"
make
echo "Compressing Artifacts"
zip -r kubernetes-mixin-${{ github.ref_name }}.zip dashboards_out prometheus_alerts.yaml prometheus_rules.yaml
- name: Upload artifact
uses: actions/upload-artifact@330a01c490aca151604b8cf639adc76d48f6c5d4 # v5.0.0
with:
name: kubernetes-mixin-${{ github.ref_name }}.zip
path: ./
release:
name: Release
runs-on: ubuntu-latest
needs: build
steps:
- name: Download artifact
uses: actions/download-artifact@018cc2cf5baa6db3ef3c5f8a56943fffe632ef53 # v6.0.0
with:
name: kubernetes-mixin-${{ github.ref_name }}.zip
- name: Create release on kubernetes-mixin
uses: softprops/action-gh-release@6da8fa9354ddfdc4aeace5fc48d7f679b5214090 # v2.4.1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
tag_name: ${{ github.ref_name }}
repository: kubernetes-monitoring/kubernetes-mixin
generate_release_notes: true
files: kubernetes-mixin-${{ github.ref_name }}.zip