@@ -21,20 +21,20 @@ jobs:
2121 run : |
2222 # Get the latest tag that matches v* pattern
2323 LATEST_TAG=$(git describe --tags --match 'v*' --abbrev=0 2>/dev/null || echo "v0.0.0")
24-
24+
2525 # Extract major, minor, patch
2626 VERSION=${LATEST_TAG#v}
2727 MAJOR=$(echo $VERSION | cut -d. -f1)
2828 MINOR=$(echo $VERSION | cut -d. -f2)
2929 PATCH=$(echo $VERSION | cut -d. -f3)
30-
30+
3131 # Increment patch version
3232 PATCH=$((PATCH + 1))
3333 NEXT_VERSION="v${MAJOR}.${MINOR}.${PATCH}"
34-
34+
3535 echo "version=${NEXT_VERSION}" >> $GITHUB_OUTPUT
3636 echo "Next version: ${NEXT_VERSION}"
37-
37+
3838 - name : Create tag
3939 run : |
4040 git config --local user.email "[email protected] " 7575 platforms : linux/amd64,linux/arm64
7676 context : .
7777 file : docker/csi.Dockerfile
78- build-contexts : |
79- project=.
80- ui=./dashboard-ui-v2
78+ build-contexts : " {{defaultContext}}"
8179 build-args : |
8280 TARGETARCH=amd64
8381 JFSCHAN=stable
@@ -90,108 +88,108 @@ jobs:
9088 ${{ steps.login-ecr.outputs.registry }}/juicefs-csi-driver-${{ matrix.region.identifier }}:${{ needs.release.outputs.version }}
9189 ${{ steps.login-ecr.outputs.registry }}/juicefs-csi-driver-${{ matrix.region.identifier }}:latest
9290
93- build-mount-images :
94- needs : release
95- runs-on : ubuntu-latest
96- strategy :
97- matrix :
98- region :
99- - name : us-east-1
100- identifier : virginia
101- - name : eu-west-2
102- identifier : london
103- edition :
104- - name : ce
105- dockerfile : ce.juicefs.Dockerfile
106- build-args : |
107- CEJUICEFS_VERSION=latest
108- - name : ee
109- dockerfile : ee.juicefs.Dockerfile
110- build-args : |
111- EEJUICEFS_VERSION=5.2.8-1305e8c
112- steps :
113- - name : " Checkout"
114- uses : actions/checkout@v4
115-
116- - name : Configure AWS credentials
117- uses : aws-actions/configure-aws-credentials@v4
118- with :
119- aws-access-key-id : ${{ secrets.AWS_ACCESS_KEY_ID }}
120- aws-secret-access-key : ${{ secrets.AWS_SECRET_ACCESS_KEY }}
121- aws-region : ${{ matrix.region.name }}
122-
123- - name : Login to ECR
124- id : login-ecr
125- uses : aws-actions/amazon-ecr-login@v2
126-
127- - uses : depot/setup-action@v1
128-
129- - name : Build and Push Mount Image (${{ matrix.edition.name }})
130- uses : depot/build-push-action@v1
131- with :
132- platforms : linux/amd64,linux/arm64
133- context : docker
134- file : docker/${{ matrix.edition.dockerfile }}
135- build-args : ${{ matrix.edition.build-args }}
136- provenance : false
137- token : ${{ secrets.DEPOT_TOKEN }}
138- push : true
139- tags : |
140- ${{ steps.login-ecr.outputs.registry }}/juicefs-mount-${{ matrix.edition.name }}-${{ matrix.region.identifier }}:${{ needs.release.outputs.version }}
141- ${{ steps.login-ecr.outputs.registry }}/juicefs-mount-${{ matrix.edition.name }}-${{ matrix.region.identifier }}:latest
142-
143- build-dashboard :
144- needs : release
145- runs-on : ubuntu-latest
146- strategy :
147- matrix :
148- region :
149- - name : us-east-1
150- identifier : virginia
151- - name : eu-west-2
152- identifier : london
153- steps :
154- - name : " Checkout"
155- uses : actions/checkout@v4
156-
157- - uses : pnpm/action-setup@v4
158- name : Install pnpm
159- with :
160- version : 9
161- run_install : |
162- cwd: dashboard-ui-v2
163-
164- - name : Build dashboard
165- run : make dashboard-dist
166-
167- - name : Configure AWS credentials
168- uses : aws-actions/configure-aws-credentials@v4
169- with :
170- aws-access-key-id : ${{ secrets.AWS_ACCESS_KEY_ID }}
171- aws-secret-access-key : ${{ secrets.AWS_SECRET_ACCESS_KEY }}
172- aws-region : ${{ matrix.region.name }}
173-
174- - name : Login to ECR
175- id : login-ecr
176- uses : aws-actions/amazon-ecr-login@v2
177-
178- - uses : depot/setup-action@v1
179-
180- - name : Build and Push Dashboard
181- uses : depot/build-push-action@v1
182- with :
183- platforms : linux/amd64,linux/arm64
184- context : .
185- file : docker/dashboard.Dockerfile
186- build-contexts : |
187- project=.
188- ui=./dashboard-ui-v2
189- provenance : false
190- token : ${{ secrets.DEPOT_TOKEN }}
191- push : true
192- tags : |
193- ${{ steps.login-ecr.outputs.registry }}/juicefs-csi-dashboard-${{ matrix.region.identifier }}:${{ needs.release.outputs.version }}
194- ${{ steps.login-ecr.outputs.registry }}/juicefs-csi-dashboard-${{ matrix.region.identifier }}:latest
91+ # build-mount-images:
92+ # needs: release
93+ # runs-on: ubuntu-latest
94+ # strategy:
95+ # matrix:
96+ # region:
97+ # - name: us-east-1
98+ # identifier: virginia
99+ # - name: eu-west-2
100+ # identifier: london
101+ # edition:
102+ # - name: ce
103+ # dockerfile: ce.juicefs.Dockerfile
104+ # build-args: |
105+ # CEJUICEFS_VERSION=latest
106+ # - name: ee
107+ # dockerfile: ee.juicefs.Dockerfile
108+ # build-args: |
109+ # EEJUICEFS_VERSION=5.2.8-1305e8c
110+ # steps:
111+ # - name: "Checkout"
112+ # uses: actions/checkout@v4
113+ #
114+ # - name: Configure AWS credentials
115+ # uses: aws-actions/configure-aws-credentials@v4
116+ # with:
117+ # aws-access-key-id: ${{ secrets.AWS_ACCESS_KEY_ID }}
118+ # aws-secret-access-key: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
119+ # aws-region: ${{ matrix.region.name }}
120+ #
121+ # - name: Login to ECR
122+ # id: login-ecr
123+ # uses: aws-actions/amazon-ecr-login@v2
124+ #
125+ # - uses: depot/setup-action@v1
126+ #
127+ # - name: Build and Push Mount Image (${{ matrix.edition.name }})
128+ # uses: depot/build-push-action@v1
129+ # with:
130+ # platforms: linux/amd64,linux/arm64
131+ # context: docker
132+ # file: docker/${{ matrix.edition.dockerfile }}
133+ # build-args: ${{ matrix.edition.build-args }}
134+ # provenance: false
135+ # token: ${{ secrets.DEPOT_TOKEN }}
136+ # push: true
137+ # tags: |
138+ # ${{ steps.login-ecr.outputs.registry }}/juicefs-mount-${{ matrix.edition.name }}-${{ matrix.region.identifier }}:${{ needs.release.outputs.version }}
139+ # ${{ steps.login-ecr.outputs.registry }}/juicefs-mount-${{ matrix.edition.name }}-${{ matrix.region.identifier }}:latest
140+ #
141+ # build-dashboard:
142+ # needs: release
143+ # runs-on: ubuntu-latest
144+ # strategy:
145+ # matrix:
146+ # region:
147+ # - name: us-east-1
148+ # identifier: virginia
149+ # - name: eu-west-2
150+ # identifier: london
151+ # steps:
152+ # - name: "Checkout"
153+ # uses: actions/checkout@v4
154+ #
155+ # - uses: pnpm/action-setup@v4
156+ # name: Install pnpm
157+ # with:
158+ # version: 9
159+ # run_install: |
160+ # cwd: dashboard-ui-v2
161+ #
162+ # - name: Build dashboard
163+ # run: make dashboard-dist
164+ #
165+ # - name: Configure AWS credentials
166+ # uses: aws-actions/configure-aws-credentials@v4
167+ # with:
168+ # aws-access-key-id: ${{ secrets.AWS_ACCESS_KEY_ID }}
169+ # aws-secret-access-key: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
170+ # aws-region: ${{ matrix.region.name }}
171+ #
172+ # - name: Login to ECR
173+ # id: login-ecr
174+ # uses: aws-actions/amazon-ecr-login@v2
175+ #
176+ # - uses: depot/setup-action@v1
177+ #
178+ # - name: Build and Push Dashboard
179+ # uses: depot/build-push-action@v1
180+ # with:
181+ # platforms: linux/amd64,linux/arm64
182+ # context: .
183+ # file: docker/dashboard.Dockerfile
184+ # build-contexts: |
185+ # project=.
186+ # ui=./dashboard-ui-v2
187+ # provenance: false
188+ # token: ${{ secrets.DEPOT_TOKEN }}
189+ # push: true
190+ # tags: |
191+ # ${{ steps.login-ecr.outputs.registry }}/juicefs-csi-dashboard-${{ matrix.region.identifier }}:${{ needs.release.outputs.version }}
192+ # ${{ steps.login-ecr.outputs.registry }}/juicefs-csi-dashboard-${{ matrix.region.identifier }}:latest
195193
196194 notify :
197195 needs : [release, build-csi, build-mount-images, build-dashboard]
@@ -202,4 +200,5 @@ jobs:
202200 uses : someimportantcompany/github-actions-slack-message@v1
203201 with :
204202 webhook-url : ${{ secrets.SLACK_WEBHOOK_URL }}
205- text : " :rocket: JuiceFS CSI Driver ${{ needs.release.outputs.version }} images built and pushed to all ECR registries! :rocket:"
203+ text : " :rocket: JuiceFS CSI Driver ${{ needs.release.outputs.version }} images built and pushed to all ECR registries! :rocket:"
204+
0 commit comments