From 019637e6e9804db6720bea8f50c290ff149b455e Mon Sep 17 00:00:00 2001 From: Camila Macedo Date: Mon, 8 Apr 2024 18:26:40 +0100 Subject: [PATCH] :seedling: Add process to build the images for kube-rbac-proxy and publish in GitHub rehistry --- .github/workflows/release-rbac-images-job.yml | 4 ++-- .../release/kube-rbac-proxy/images-versions.yaml | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) rename .github/workflows/release-rbac-images-versions.yaml => hack/release/kube-rbac-proxy/images-versions.yaml (59%) diff --git a/.github/workflows/release-rbac-images-job.yml b/.github/workflows/release-rbac-images-job.yml index 9342a61b475..101db53ebaa 100644 --- a/.github/workflows/release-rbac-images-job.yml +++ b/.github/workflows/release-rbac-images-job.yml @@ -13,7 +13,7 @@ on: branches: - master # paths: -# - 'release-rbac-images-versions.yaml' +# - 'hack/release/kube-rbac-proxy/images-versions.yaml' permissions: contents: read @@ -41,7 +41,7 @@ jobs: - name: Read versions from YAML and check for existing images run: | - VERSIONS=$(yq e '.versions[]' release-rbac-images-versions.yaml) + VERSIONS=$(yq e '.versions[]' hack/release/kube-rbac-proxy/images-versions.yaml) for VERSION in $VERSIONS; do EXISTS=$(curl -s -o /dev/null -w "%{http_code}" -H "Authorization: Bearer ${{ secrets.GITHUB_TOKEN }}" https://ghcr.io/v2/${{ github.repository_owner }}/kube-rbac-proxy/manifests/$VERSION) if [ "$EXISTS" -ne 200 ]; then diff --git a/.github/workflows/release-rbac-images-versions.yaml b/hack/release/kube-rbac-proxy/images-versions.yaml similarity index 59% rename from .github/workflows/release-rbac-images-versions.yaml rename to hack/release/kube-rbac-proxy/images-versions.yaml index 88e6c198d15..52d4fa563fb 100644 --- a/.github/workflows/release-rbac-images-versions.yaml +++ b/hack/release/kube-rbac-proxy/images-versions.yaml @@ -1,4 +1,4 @@ -# Update this file to build new releases for the images +# Update this file to build new release for the images # of the project https://github.com/brancz/kube-rbac-proxy versions: - v0.16.0