From 51597bca637d773cef0f069d2a2a451085f084ab Mon Sep 17 00:00:00 2001 From: Dean Roehrich Date: Tue, 20 Feb 2024 15:37:20 -0600 Subject: [PATCH 1/2] Make the auto-release via tag depend on a successful build (#55) Signed-off-by: Dean Roehrich --- .github/workflows/handle_release_tag.yaml | 26 ----------------------- .github/workflows/main.yml | 20 +++++++++++++++++ 2 files changed, 20 insertions(+), 26 deletions(-) delete mode 100644 .github/workflows/handle_release_tag.yaml diff --git a/.github/workflows/handle_release_tag.yaml b/.github/workflows/handle_release_tag.yaml deleted file mode 100644 index c83b3fc..0000000 --- a/.github/workflows/handle_release_tag.yaml +++ /dev/null @@ -1,26 +0,0 @@ -name: Handle Release Tag - -on: - push: - tags: - - 'v*' - -jobs: - create_release: - runs-on: ubuntu-latest - steps: - - name: Checkout - uses: actions/checkout@v4 - with: - fetch-tags: true - fetch-depth: 0 - - name: Repair tag - run: git fetch -f origin ${{ github.ref }}:${{ github.ref }} - - name: Verify that the tag is annotated - run: if test x$(git for-each-ref ${{ github.ref }} | awk '{print $2}') = xtag; then /bin/true; else echo "\"${{ github.ref }}\" does not look like an annotated tag!"; /bin/false; fi - - name: Release - uses: softprops/action-gh-release@v1 - with: - #prerelease: true - generate_release_notes: true - diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index b409a33..c456dca 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -90,3 +90,23 @@ jobs: push: true tags: ${{ steps.meta.outputs.tags }} + create_release: + needs: build + if: startsWith(github.ref, 'refs/tags/v') + runs-on: ubuntu-latest + steps: + - name: Checkout + uses: actions/checkout@v4 + with: + fetch-tags: true + fetch-depth: 0 + - name: Repair tag + run: git fetch -f origin ${{ github.ref }}:${{ github.ref }} + - name: Verify that the tag is annotated + run: if test x$(git for-each-ref ${{ github.ref }} | awk '{print $2}') = xtag; then /bin/true; else echo "\"${{ github.ref }}\" does not look like an annotated tag!"; /bin/false; fi + - name: Release + uses: softprops/action-gh-release@v1 + with: + #prerelease: true + generate_release_notes: true + From 8a423c5e2c5b0433719d5344a9b03b62eace0a11 Mon Sep 17 00:00:00 2001 From: Dean Roehrich Date: Tue, 20 Feb 2024 15:44:23 -0600 Subject: [PATCH 2/2] Reference v0.0.10 Signed-off-by: Dean Roehrich --- config/manager/kustomization.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/config/manager/kustomization.yaml b/config/manager/kustomization.yaml index 56716b7..2d06942 100644 --- a/config/manager/kustomization.yaml +++ b/config/manager/kustomization.yaml @@ -18,4 +18,4 @@ kind: Kustomization images: - name: controller newName: ghcr.io/nearnodeflash/lustre-fs-operator - newTag: 0.0.9 + newTag: 0.0.10