|
4 | 4 | push: |
5 | 5 | # Sequence of patterns matched against refs/tags |
6 | 6 | tags: |
7 | | - - 'v*' # Push events to matching v*, i.e. v1.0, v20.15.10 |
| 7 | + - 'v*' # Push events to matching v*, i.e. v1.0, v20.15.1 |
8 | 8 |
|
9 | 9 | jobs: |
10 | 10 | release: |
11 | 11 | runs-on: ubuntu-latest |
12 | 12 | steps: |
13 | | - - name: Checkout Source |
14 | | - uses: actions/checkout@v4 |
15 | | - - uses: actions/setup-go@v5 |
16 | | - with: |
17 | | - go-version: '1.24.1' |
18 | | - - name: Get Version |
19 | | - id: branch-names |
20 | | - uses: tj-actions/branch-names@v8 |
21 | | - with: |
22 | | - strip_tag_prefix: v |
23 | | - - name: Build |
24 | | - run: | |
25 | | - chmod +x ./build.sh |
26 | | - ./build.sh ${{ steps.branch-names.outputs.tag }} X86 |
27 | | - ./build.sh ${{ steps.branch-names.outputs.tag }} ARM |
28 | | - ./build.sh ${{ steps.branch-names.outputs.tag }} PPC64LE |
29 | | - - name: Create Release and Upload Release Asset |
30 | | - uses: softprops/action-gh-release@v2 |
31 | | - if: startsWith(github.ref, 'refs/tags/') |
32 | | - with: |
33 | | - body: TODO New Release. |
34 | | - draft: true |
35 | | - files: | |
36 | | - eSDK_Storage_CSI_V${{ steps.branch-names.outputs.tag }}_X86_64.zip |
37 | | - eSDK_Storage_CSI_V${{ steps.branch-names.outputs.tag }}_ARM_64.zip |
38 | | - eSDK_Storage_CSI_V${{ steps.branch-names.outputs.tag }}_PPC64LE_64.zip |
| 13 | + - name: Checkout Source |
| 14 | + uses: actions/checkout@v4 |
| 15 | + - uses: actions/setup-go@v5 |
| 16 | + with: |
| 17 | + go-version: '1.24.1' |
| 18 | + - name: Get Version |
| 19 | + id: branch-names |
| 20 | + uses: tj-actions/branch-names@v8 |
| 21 | + with: |
| 22 | + strip_tag_prefix: v |
| 23 | + - name: Login Repo |
| 24 | + env: |
| 25 | + SWR_UNAME: ${{ secrets.SWR_UNAME }} |
| 26 | + SWR_PASSWORD: ${{ secrets.SWR_PASSWORD }} |
| 27 | + run: | |
| 28 | + docker login -u "$SWR_UNAME" -p "$SWR_PASSWORD" swr.cn-north-4.myhuaweicloud.com |
| 29 | + - name: Build_X86 |
| 30 | + run: | |
| 31 | + chmod +x ./build.sh && ./build.sh ${{ steps.branch-names.outputs.tag }} X86 |
| 32 | + docker tag huawei-csi:${{ steps.branch-names.outputs.tag }} swr.cn-north-4.myhuaweicloud.com/huawei-css/huawei-csi:${{ steps.branch-names.outputs.tag }}-amd |
| 33 | + docker tag storage-backend-controller:${{ steps.branch-names.outputs.tag }} swr.cn-north-4.myhuaweicloud.com/huawei-css/storage-backend-controller:${{ steps.branch-names.outputs.tag }}-amd |
| 34 | + docker tag storage-backend-sidecar:${{ steps.branch-names.outputs.tag }} swr.cn-north-4.myhuaweicloud.com/huawei-css/storage-backend-sidecar:${{ steps.branch-names.outputs.tag }}-amd |
| 35 | + docker tag huawei-csi-extender:${{ steps.branch-names.outputs.tag }} swr.cn-north-4.myhuaweicloud.com/huawei-css/huawei-csi-extender:${{ steps.branch-names.outputs.tag }}-amd |
| 36 | + docker push swr.cn-north-4.myhuaweicloud.com/huawei-css/huawei-csi:${{ steps.branch-names.outputs.tag }}-amd |
| 37 | + docker push swr.cn-north-4.myhuaweicloud.com/huawei-css/storage-backend-controller:${{ steps.branch-names.outputs.tag }}-amd |
| 38 | + docker push swr.cn-north-4.myhuaweicloud.com/huawei-css/storage-backend-sidecar:${{ steps.branch-names.outputs.tag }}-amd |
| 39 | + docker push swr.cn-north-4.myhuaweicloud.com/huawei-css/huawei-csi-extender:${{ steps.branch-names.outputs.tag }}-amd |
| 40 | + - name: Build_ARM |
| 41 | + run: | |
| 42 | + chmod +x ./build.sh && ./build.sh ${{ steps.branch-names.outputs.tag }} ARM |
| 43 | + docker tag huawei-csi:${{ steps.branch-names.outputs.tag }} swr.cn-north-4.myhuaweicloud.com/huawei-css/huawei-csi:${{ steps.branch-names.outputs.tag }}-arm |
| 44 | + docker tag storage-backend-controller:${{ steps.branch-names.outputs.tag }} swr.cn-north-4.myhuaweicloud.com/huawei-css/storage-backend-controller:${{ steps.branch-names.outputs.tag }}-arm |
| 45 | + docker tag storage-backend-sidecar:${{ steps.branch-names.outputs.tag }} swr.cn-north-4.myhuaweicloud.com/huawei-css/storage-backend-sidecar:${{ steps.branch-names.outputs.tag }}-arm |
| 46 | + docker tag huawei-csi-extender:${{ steps.branch-names.outputs.tag }} swr.cn-north-4.myhuaweicloud.com/huawei-css/huawei-csi-extender:${{ steps.branch-names.outputs.tag }}-arm |
| 47 | + docker push swr.cn-north-4.myhuaweicloud.com/huawei-css/huawei-csi:${{ steps.branch-names.outputs.tag }}-arm |
| 48 | + docker push swr.cn-north-4.myhuaweicloud.com/huawei-css/storage-backend-controller:${{ steps.branch-names.outputs.tag }}-arm |
| 49 | + docker push swr.cn-north-4.myhuaweicloud.com/huawei-css/storage-backend-sidecar:${{ steps.branch-names.outputs.tag }}-arm |
| 50 | + docker push swr.cn-north-4.myhuaweicloud.com/huawei-css/huawei-csi-extender:${{ steps.branch-names.outputs.tag }}-arm |
| 51 | + - name: Build_PPC64LE |
| 52 | + run: | |
| 53 | + chmod +x ./build.sh && ./build.sh ${{ steps.branch-names.outputs.tag }} PPC64LE |
| 54 | + docker tag huawei-csi:${{ steps.branch-names.outputs.tag }} swr.cn-north-4.myhuaweicloud.com/huawei-css/huawei-csi:${{ steps.branch-names.outputs.tag }}-ppc64le |
| 55 | + docker tag storage-backend-controller:${{ steps.branch-names.outputs.tag }} swr.cn-north-4.myhuaweicloud.com/huawei-css/storage-backend-controller:${{ steps.branch-names.outputs.tag }}-ppc64le |
| 56 | + docker tag storage-backend-sidecar:${{ steps.branch-names.outputs.tag }} swr.cn-north-4.myhuaweicloud.com/huawei-css/storage-backend-sidecar:${{ steps.branch-names.outputs.tag }}-ppc64le |
| 57 | + docker tag huawei-csi-extender:${{ steps.branch-names.outputs.tag }} swr.cn-north-4.myhuaweicloud.com/huawei-css/huawei-csi-extender:${{ steps.branch-names.outputs.tag }}-ppc64le |
| 58 | + docker push swr.cn-north-4.myhuaweicloud.com/huawei-css/huawei-csi:${{ steps.branch-names.outputs.tag }}-ppc64le |
| 59 | + docker push swr.cn-north-4.myhuaweicloud.com/huawei-css/storage-backend-controller:${{ steps.branch-names.outputs.tag }}-ppc64le |
| 60 | + docker push swr.cn-north-4.myhuaweicloud.com/huawei-css/storage-backend-sidecar:${{ steps.branch-names.outputs.tag }}-ppc64le |
| 61 | + docker push swr.cn-north-4.myhuaweicloud.com/huawei-css/huawei-csi-extender:${{ steps.branch-names.outputs.tag }}-ppc64le |
| 62 | + - name: Create Manifest |
| 63 | + run: | |
| 64 | + docker manifest create --insecure swr.cn-north-4.myhuaweicloud.com/huawei-css/huawei-csi:${{ steps.branch-names.outputs.tag }} swr.cn-north-4.myhuaweicloud.com/huawei-css/huawei-csi:${{ steps.branch-names.outputs.tag }}-amd swr.cn-north-4.myhuaweicloud.com/huawei-css/huawei-csi:${{ steps.branch-names.outputs.tag }}-arm swr.cn-north-4.myhuaweicloud.com/huawei-css/huawei-csi:${{ steps.branch-names.outputs.tag }}-ppc64le |
| 65 | + docker manifest annotate swr.cn-north-4.myhuaweicloud.com/huawei-css/huawei-csi:${{ steps.branch-names.outputs.tag }} swr.cn-north-4.myhuaweicloud.com/huawei-css/huawei-csi:${{ steps.branch-names.outputs.tag }}-amd --os linux --arch amd64 |
| 66 | + docker manifest annotate swr.cn-north-4.myhuaweicloud.com/huawei-css/huawei-csi:${{ steps.branch-names.outputs.tag }} swr.cn-north-4.myhuaweicloud.com/huawei-css/huawei-csi:${{ steps.branch-names.outputs.tag }}-arm --os linux --arch arm64 |
| 67 | + docker manifest annotate swr.cn-north-4.myhuaweicloud.com/huawei-css/huawei-csi:${{ steps.branch-names.outputs.tag }} swr.cn-north-4.myhuaweicloud.com/huawei-css/huawei-csi:${{ steps.branch-names.outputs.tag }}-ppc64le --os linux --arch ppc64le |
| 68 | + docker manifest push --insecure swr.cn-north-4.myhuaweicloud.com/huawei-css/huawei-csi:${{ steps.branch-names.outputs.tag }} |
| 69 | + |
| 70 | + docker manifest create --insecure swr.cn-north-4.myhuaweicloud.com/huawei-css/storage-backend-controller:${{ steps.branch-names.outputs.tag }} swr.cn-north-4.myhuaweicloud.com/huawei-css/storage-backend-controller:${{ steps.branch-names.outputs.tag }}-amd swr.cn-north-4.myhuaweicloud.com/huawei-css/storage-backend-controller:${{ steps.branch-names.outputs.tag }}-arm swr.cn-north-4.myhuaweicloud.com/huawei-css/storage-backend-controller:${{ steps.branch-names.outputs.tag }}-ppc64le |
| 71 | + docker manifest annotate swr.cn-north-4.myhuaweicloud.com/huawei-css/storage-backend-controller:${{ steps.branch-names.outputs.tag }} swr.cn-north-4.myhuaweicloud.com/huawei-css/storage-backend-controller:${{ steps.branch-names.outputs.tag }}-amd --os linux --arch amd64 |
| 72 | + docker manifest annotate swr.cn-north-4.myhuaweicloud.com/huawei-css/storage-backend-controller:${{ steps.branch-names.outputs.tag }} swr.cn-north-4.myhuaweicloud.com/huawei-css/storage-backend-controller:${{ steps.branch-names.outputs.tag }}-arm --os linux --arch arm64 |
| 73 | + docker manifest annotate swr.cn-north-4.myhuaweicloud.com/huawei-css/storage-backend-controller:${{ steps.branch-names.outputs.tag }} swr.cn-north-4.myhuaweicloud.com/huawei-css/storage-backend-controller:${{ steps.branch-names.outputs.tag }}-ppc64le --os linux --arch ppc64le |
| 74 | + docker manifest push --insecure swr.cn-north-4.myhuaweicloud.com/huawei-css/storage-backend-controller:${{ steps.branch-names.outputs.tag }} |
| 75 | + |
| 76 | + docker manifest create --insecure swr.cn-north-4.myhuaweicloud.com/huawei-css/storage-backend-sidecar:${{ steps.branch-names.outputs.tag }} swr.cn-north-4.myhuaweicloud.com/huawei-css/storage-backend-sidecar:${{ steps.branch-names.outputs.tag }}-amd swr.cn-north-4.myhuaweicloud.com/huawei-css/storage-backend-sidecar:${{ steps.branch-names.outputs.tag }}-arm swr.cn-north-4.myhuaweicloud.com/huawei-css/storage-backend-sidecar:${{ steps.branch-names.outputs.tag }}-ppc64le |
| 77 | + docker manifest annotate swr.cn-north-4.myhuaweicloud.com/huawei-css/storage-backend-sidecar:${{ steps.branch-names.outputs.tag }} swr.cn-north-4.myhuaweicloud.com/huawei-css/storage-backend-sidecar:${{ steps.branch-names.outputs.tag }}-amd --os linux --arch amd64 |
| 78 | + docker manifest annotate swr.cn-north-4.myhuaweicloud.com/huawei-css/storage-backend-sidecar:${{ steps.branch-names.outputs.tag }} swr.cn-north-4.myhuaweicloud.com/huawei-css/storage-backend-sidecar:${{ steps.branch-names.outputs.tag }}-arm --os linux --arch arm64 |
| 79 | + docker manifest annotate swr.cn-north-4.myhuaweicloud.com/huawei-css/storage-backend-sidecar:${{ steps.branch-names.outputs.tag }} swr.cn-north-4.myhuaweicloud.com/huawei-css/storage-backend-sidecar:${{ steps.branch-names.outputs.tag }}-ppc64le --os linux --arch ppc64le |
| 80 | + docker manifest push --insecure swr.cn-north-4.myhuaweicloud.com/huawei-css/storage-backend-sidecar:${{ steps.branch-names.outputs.tag }} |
| 81 | +
|
| 82 | + docker manifest create --insecure swr.cn-north-4.myhuaweicloud.com/huawei-css/huawei-csi-extender:${{ steps.branch-names.outputs.tag }} swr.cn-north-4.myhuaweicloud.com/huawei-css/huawei-csi-extender:${{ steps.branch-names.outputs.tag }}-amd swr.cn-north-4.myhuaweicloud.com/huawei-css/huawei-csi-extender:${{ steps.branch-names.outputs.tag }}-arm swr.cn-north-4.myhuaweicloud.com/huawei-css/huawei-csi-extender:${{ steps.branch-names.outputs.tag }}-ppc64le |
| 83 | + docker manifest annotate swr.cn-north-4.myhuaweicloud.com/huawei-css/huawei-csi-extender:${{ steps.branch-names.outputs.tag }} swr.cn-north-4.myhuaweicloud.com/huawei-css/huawei-csi-extender:${{ steps.branch-names.outputs.tag }}-amd --os linux --arch amd64 |
| 84 | + docker manifest annotate swr.cn-north-4.myhuaweicloud.com/huawei-css/huawei-csi-extender:${{ steps.branch-names.outputs.tag }} swr.cn-north-4.myhuaweicloud.com/huawei-css/huawei-csi-extender:${{ steps.branch-names.outputs.tag }}-arm --os linux --arch arm64 |
| 85 | + docker manifest annotate swr.cn-north-4.myhuaweicloud.com/huawei-css/huawei-csi-extender:${{ steps.branch-names.outputs.tag }} swr.cn-north-4.myhuaweicloud.com/huawei-css/huawei-csi-extender:${{ steps.branch-names.outputs.tag }}-ppc64le --os linux --arch ppc64le |
| 86 | + docker manifest push --insecure swr.cn-north-4.myhuaweicloud.com/huawei-css/huawei-csi-extender:${{ steps.branch-names.outputs.tag }} |
| 87 | + - name: Create Release and Upload Release Asset |
| 88 | + uses: softprops/action-gh-release@v2 |
| 89 | + if: startsWith(github.ref, 'refs/tags/') |
| 90 | + with: |
| 91 | + body: TODO New Release. |
| 92 | + draft: true |
| 93 | + files: | |
| 94 | + eSDK_Storage_CSI_V${{ steps.branch-names.outputs.tag }}_X86_64.zip |
| 95 | + eSDK_Storage_CSI_V${{ steps.branch-names.outputs.tag }}_ARM_64.zip |
| 96 | + eSDK_Storage_CSI_V${{ steps.branch-names.outputs.tag }}_PPC64LE_64.zip |
0 commit comments