diff --git a/.github/workflows/main.yaml b/.github/workflows/main.yaml index e7cd05a..1d9f5e4 100644 --- a/.github/workflows/main.yaml +++ b/.github/workflows/main.yaml @@ -1,15 +1,6 @@ name: Docker build and push -on: - push: - branches: - - '*' - tags: - - 'v*' - pull_request: - branches: - - 'master' - - 'releases/v*' +on: [push] env: # TEST_TARGET: Name of the testing target in the Dockerfile @@ -19,9 +10,6 @@ env: # The docker test current fails on this project DO_TEST: false - # DO_PUSH - true to push to the HPE_DEPLOY_REPO, false to not push - DO_PUSH: true - jobs: build: runs-on: ubuntu-latest @@ -103,3 +91,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 + diff --git a/.github/workflows/verify_tag.yaml b/.github/workflows/verify_tag.yaml deleted file mode 100644 index 2a75d91..0000000 --- a/.github/workflows/verify_tag.yaml +++ /dev/null @@ -1,28 +0,0 @@ -# Pushing a tag triggers this workflow, which verifies that it is an -# annotated tag. -name: Verify tag - -on: - push: - tags: - - "v*" - -jobs: - verify_tag: - runs-on: ubuntu-latest - steps: - - name: "Verify context" - run: | - echo "ref is ${{ github.ref }}" - echo "ref_type is ${{ github.ref_type }}" - - - uses: actions/checkout@v3 - # actions/checkout@v3 breaks annotated tags by converting them into - # lightweight tags, so we need to force fetch the tag again - # See: https://github.com/actions/checkout/issues/290 - - name: "Repair tag" - run: git fetch -f origin ${{ github.ref }}:${{ github.ref }} - - name: "Verify 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: "Echo release tag" - run: echo "TAG=${{ github.repository }}:${{ github.ref }}" diff --git a/charts/lustre-csi-driver/values.yaml b/charts/lustre-csi-driver/values.yaml index 6697b03..833c1f3 100644 --- a/charts/lustre-csi-driver/values.yaml +++ b/charts/lustre-csi-driver/values.yaml @@ -4,4 +4,4 @@ deployment: image: "ghcr.io/hewlettpackard/lustre-csi-driver" - tag: "0.0.8" + tag: "0.0.9" diff --git a/deploy/kubernetes/base/kustomization.yaml b/deploy/kubernetes/base/kustomization.yaml index 60e93c1..546c431 100644 --- a/deploy/kubernetes/base/kustomization.yaml +++ b/deploy/kubernetes/base/kustomization.yaml @@ -13,4 +13,4 @@ resources: images: - name: controller newName: ghcr.io/hewlettpackard/lustre-csi-driver - newTag: 0.0.8 + newTag: 0.0.9 diff --git a/deploy/kubernetes/base/plugin.yaml b/deploy/kubernetes/base/plugin.yaml index c740ce4..df0ee02 100644 --- a/deploy/kubernetes/base/plugin.yaml +++ b/deploy/kubernetes/base/plugin.yaml @@ -14,6 +14,10 @@ spec: app.kubernetes.io/part-of: lustre-csi-driver app.kubernetes.io/name: lustre-csi-node app.kubernetes.io/component: plugin + updateStrategy: + type: RollingUpdate + rollingUpdate: + maxUnavailable: "25%" template: metadata: labels: