From af163fe9b2392610a9b0b725254e56e255f8ed86 Mon Sep 17 00:00:00 2001 From: Hamed Karbasi Date: Wed, 6 Dec 2023 13:13:00 +0330 Subject: [PATCH 1/3] remove redundant path from helm release workflow --- .github/workflows/build-release.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/build-release.yaml b/.github/workflows/build-release.yaml index 9bace30..53866ce 100644 --- a/.github/workflows/build-release.yaml +++ b/.github/workflows/build-release.yaml @@ -63,7 +63,7 @@ jobs: uses: appany/helm-oci-chart-releaser@v0.3.0 with: name: s3-operator - repository: helm-charts/s3-operator + repository: helm-charts tag: ${{ github.ref_name }} path: charts/s3-operator # Default charts/{name} registry: ghcr.io From e3ed6bc8febeb66f81e393498f0e700cfb421859 Mon Sep 17 00:00:00 2001 From: Hamed Karbasi Date: Wed, 6 Dec 2023 13:33:42 +0330 Subject: [PATCH 2/3] fix checkout issue in the release ci pipelines --- .github/workflows/build-release.yaml | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/.github/workflows/build-release.yaml b/.github/workflows/build-release.yaml index 53866ce..6f3ba8f 100644 --- a/.github/workflows/build-release.yaml +++ b/.github/workflows/build-release.yaml @@ -40,6 +40,7 @@ jobs: env: OPERATOR_SDK_VERSION: v1.31.0 steps: + - uses: actions/checkout@v3 - name: Install operator-sdk run: | curl -L https://github.com/operator-framework/operator-sdk/releases/download/${OPERATOR_SDK_VERSION}/operator-sdk_linux_amd64 -o /usr/local/bin/operator-sdk @@ -57,6 +58,7 @@ jobs: needs: build-push-docker runs-on: ubuntu-latest steps: + - uses: actions/checkout@v3 - name: helmify run: make helm - name: Chart | Push @@ -74,6 +76,8 @@ jobs: needs: build-push-docker name: release runs-on: ubuntu-latest + env: + GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} steps: - name: release run: gh release create ${{ github.ref_name }} --generate-notes --verify-tag From 80d8dcebed681edcaa07267cb1a62fefbd0f5620 Mon Sep 17 00:00:00 2001 From: Hamed Karbasi Date: Wed, 6 Dec 2023 13:53:56 +0330 Subject: [PATCH 3/3] fix token issue in release workflow --- .github/workflows/build-release.yaml | 21 ++++++++------------- 1 file changed, 8 insertions(+), 13 deletions(-) diff --git a/.github/workflows/build-release.yaml b/.github/workflows/build-release.yaml index 6f3ba8f..fbea75f 100644 --- a/.github/workflows/build-release.yaml +++ b/.github/workflows/build-release.yaml @@ -6,9 +6,11 @@ on: - 'v*' jobs: - build-push-docker: - name: build-docker + build-push-operator: + name: build-push-operator runs-on: ubuntu-latest + env: + OPERATOR_SDK_VERSION: v1.31.0 steps: - uses: actions/checkout@v3 - uses: docker/setup-qemu-action@v2 @@ -33,14 +35,6 @@ jobs: tags: ${{ steps.meta.outputs.tags }} labels: ${{ steps.meta.outputs.labels }} - build-push-bundle: - needs: build-push-docker - name: build-push-bundle - runs-on: ubuntu-latest - env: - OPERATOR_SDK_VERSION: v1.31.0 - steps: - - uses: actions/checkout@v3 - name: Install operator-sdk run: | curl -L https://github.com/operator-framework/operator-sdk/releases/download/${OPERATOR_SDK_VERSION}/operator-sdk_linux_amd64 -o /usr/local/bin/operator-sdk @@ -55,7 +49,7 @@ jobs: helm-chart: name: helm-chart - needs: build-push-docker + needs: build-push-operator runs-on: ubuntu-latest steps: - uses: actions/checkout@v3 @@ -65,7 +59,7 @@ jobs: uses: appany/helm-oci-chart-releaser@v0.3.0 with: name: s3-operator - repository: helm-charts + repository: ${{ github.repository }}/helm-charts tag: ${{ github.ref_name }} path: charts/s3-operator # Default charts/{name} registry: ghcr.io @@ -73,11 +67,12 @@ jobs: registry_password: ${{ secrets.GITHUB_TOKEN }} release: - needs: build-push-docker + needs: build-push-operator name: release runs-on: ubuntu-latest env: GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} steps: + - uses: actions/checkout@v3 - name: release run: gh release create ${{ github.ref_name }} --generate-notes --verify-tag