From 376b033ab55c258b32516427d6ad453baadc9af9 Mon Sep 17 00:00:00 2001 From: Shafeeque E S Date: Fri, 15 Dec 2023 23:21:14 +0530 Subject: [PATCH 1/5] Generate OpenVEX data for every release Signed-off-by: Shafeeque E S --- .github/workflows/openvex.yaml | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 .github/workflows/openvex.yaml diff --git a/.github/workflows/openvex.yaml b/.github/workflows/openvex.yaml new file mode 100644 index 0000000000..5465740323 --- /dev/null +++ b/.github/workflows/openvex.yaml @@ -0,0 +1,19 @@ +name: openvex + +on: + workflow_dispatch: + push: + tags: + - 'v*.*.*' +jobs: + vexctl: + runs-on: ubuntu-latest + steps: + - name: Checkout code + uses: actions/checkout@v2 + - name: Set env + run: echo "RELEASE_VERSION=${GITHUB_REF#refs/*/}" >> $GITHUB_ENV + - uses: openvex/generate-vex@31b415924ea0d72ed5f2640f1dee59dea6c2770b + name: Run vexctl + with: + product: pkg:generic/hello@${{ env.RELEASE_VERSION }} From 4de960dc39ba385b04617157162140f62e674e78 Mon Sep 17 00:00:00 2001 From: Shafeeque E S Date: Fri, 15 Dec 2023 23:48:14 +0530 Subject: [PATCH 2/5] Address PR review feedback Signed-off-by: Shafeeque E S --- .github/workflows/openvex.yaml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/openvex.yaml b/.github/workflows/openvex.yaml index 5465740323..31b458fa1c 100644 --- a/.github/workflows/openvex.yaml +++ b/.github/workflows/openvex.yaml @@ -10,10 +10,10 @@ jobs: runs-on: ubuntu-latest steps: - name: Checkout code - uses: actions/checkout@v2 + uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 #v4.1.1 - name: Set env run: echo "RELEASE_VERSION=${GITHUB_REF#refs/*/}" >> $GITHUB_ENV - uses: openvex/generate-vex@31b415924ea0d72ed5f2640f1dee59dea6c2770b name: Run vexctl with: - product: pkg:generic/hello@${{ env.RELEASE_VERSION }} + product: pkg:golang/kubernetes/kube-state-metrics@${{ env.RELEASE_VERSION }} From 0442ef339e4df69577cff4caf582556d6d1fc1de Mon Sep 17 00:00:00 2001 From: Shafeeque E S Date: Sat, 16 Dec 2023 01:14:20 +0530 Subject: [PATCH 3/5] Rename file Signed-off-by: Shafeeque E S --- .github/workflows/{openvex.yaml => openvex.yml} | 0 1 file changed, 0 insertions(+), 0 deletions(-) rename .github/workflows/{openvex.yaml => openvex.yml} (100%) diff --git a/.github/workflows/openvex.yaml b/.github/workflows/openvex.yml similarity index 100% rename from .github/workflows/openvex.yaml rename to .github/workflows/openvex.yml From c11318fa8306774e356702c5e17c52a5100c0097 Mon Sep 17 00:00:00 2001 From: Shafeeque E S Date: Mon, 18 Dec 2023 12:29:02 +0530 Subject: [PATCH 4/5] Address PR review feedback --- .github/workflows/openvex.yml | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/.github/workflows/openvex.yml b/.github/workflows/openvex.yml index 31b458fa1c..574741e99d 100644 --- a/.github/workflows/openvex.yml +++ b/.github/workflows/openvex.yml @@ -10,10 +10,11 @@ jobs: runs-on: ubuntu-latest steps: - name: Checkout code - uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 #v4.1.1 - - name: Set env + uses: actions/checkout@v4 + - name: Set environment variables run: echo "RELEASE_VERSION=${GITHUB_REF#refs/*/}" >> $GITHUB_ENV - - uses: openvex/generate-vex@31b415924ea0d72ed5f2640f1dee59dea6c2770b + - uses: openvex/generate-vex@c59881b41451d7ccba5c3b74cd195382b8971fcd + # Refer: https://github.com/openvex/vexctl#operational-model name: Run vexctl with: product: pkg:golang/kubernetes/kube-state-metrics@${{ env.RELEASE_VERSION }} From 9bbed501f2fa9cd5da0e80c233feb14709d1a302 Mon Sep 17 00:00:00 2001 From: Shafeeque E S Date: Tue, 19 Dec 2023 16:28:44 +0530 Subject: [PATCH 5/5] Address PR review feedback --- .github/workflows/openvex.yml | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/.github/workflows/openvex.yml b/.github/workflows/openvex.yml index 574741e99d..c76c425d38 100644 --- a/.github/workflows/openvex.yml +++ b/.github/workflows/openvex.yml @@ -2,9 +2,8 @@ name: openvex on: workflow_dispatch: - push: - tags: - - 'v*.*.*' + release: + types: [published] jobs: vexctl: runs-on: ubuntu-latest @@ -17,4 +16,4 @@ jobs: # Refer: https://github.com/openvex/vexctl#operational-model name: Run vexctl with: - product: pkg:golang/kubernetes/kube-state-metrics@${{ env.RELEASE_VERSION }} + product: pkg:golang/k8s.io/kube-state-metrics/v2@${{ env.RELEASE_VERSION }}