Skip to content

Commit 9fd9732

Browse files
jackblack369Wine93
authored andcommitted
[ci] Release v5.0.0
1 parent 9b3c8fb commit 9fd9732

File tree

2 files changed

+12
-11
lines changed

2 files changed

+12
-11
lines changed

.github/workflows/ci-build.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ jobs:
4242
4343
- name: Pull dingodatabase/dingo-eureka:rocky9-fs
4444
run: |
45-
docker pull dingodatabase/dingo-eureka:rocky9-fs
45+
docker pull dingodatabase/dingo-eureka:rocky9-fs-1f73f45
4646
4747
- name: Init build script
4848
run: |
@@ -51,7 +51,7 @@ jobs:
5151
set -x
5252
set -e
5353
54-
cd / && git clone https://github.com/dingodb/dingo-sdk.git && cd dingo-sdk && \
54+
cd / && git clone --branch v1.0.0 --single-branch https://github.com/dingodb/dingo-sdk.git && cd dingo-sdk && \
5555
git submodule sync --recursive && git submodule update --init --recursive && \
5656
mkdir build && cd build && cmake -DTHIRD_PARTY_INSTALL_PATH=/root/.local/dingo-eureka -DCMAKE_INSTALL_PREFIX=/root/.local/dingo-sdk -DCMAKE_BUILD_TYPE=RelWithDebInfo -DBUILD_SDK_EXAMPLE=OFF -DBUILD_BENCHMARK=OFF -DBUILD_PYTHON_SDK=OFF -DBUILD_INTEGRATION_TESTS=OFF -DBUILD_UNIT_TESTS=OFF .. && \
5757
make -j16 && make install && export DINGOSDK_INSTALL_PATH=/root/.local/dingo-sdk
@@ -90,7 +90,7 @@ jobs:
9090
echo "$branchName" > branch_name.txt
9191
9292
commitId="${{ github.sha }}"
93-
shortCommitId=${commitId:0:8}
93+
shortCommitId=${commitId:0:7}
9494
echo "commit id is: $shortCommitId"
9595
echo "$shortCommitId" > commit_id.txt
9696
@@ -141,7 +141,7 @@ jobs:
141141
- name: Build DingoFS
142142
run: |
143143
echo "Build DingoFS"
144-
docker run --name release-dingofs --rm -v /mnt/dingofs:/opt/dingofs/ dingodatabase/dingo-eureka:rocky9-fs /opt/dingofs/build.sh
144+
docker run --name release-dingofs --rm -v /mnt/dingofs:/opt/dingofs/ dingodatabase/dingo-eureka:rocky9-fs-1f73f45 /opt/dingofs/build.sh
145145
146146
- name: Copy artifactory to another workflow
147147
uses: actions/upload-artifact@v4

.github/workflows/docker-publish.yml

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -137,22 +137,23 @@ jobs:
137137
username: ${{ secrets.DOCKERHUB_USERNAME }}
138138
password: ${{ secrets.DOCKERHUB_TOKEN }}
139139

140-
- name: Docker meta mdsv2
141-
if: ${{ steps.check-event.outputs.continue == 'true' && (env.BRANCH_NAME == 'main' || env.EVENT == 'tag') }}
142-
id: meta-v2
140+
- name: Docker meta
141+
if: steps.check-event.outputs.continue == 'true'
142+
id: image-meta
143143
uses: docker/metadata-action@v5
144144
with:
145145
images: dingodatabase/dingofs
146146
tags: |
147147
type=raw,enable=${{ env.EVENT == 'tag' }},value=${{ env.TAG_NAME }}
148-
type=raw,value=mdsv2-latest,enable=${{ env.BRANCH_NAME == 'main' && env.EVENT != 'tag'}}
149-
type=sha,prefix=mdsv2-,format=short,enable=${{ env.EVENT != 'tag' && env.BRANCH_NAME == 'main' }}
148+
type=raw,value=latest,enable=${{ env.BRANCH_NAME == 'main' && env.EVENT != 'tag'}}
149+
type=sha,prefix=,format=short,enable=${{ env.EVENT != 'tag' && env.BRANCH_NAME == 'main' }}
150+
type=sha,prefix=${{ env.BRANCH_NAME }}-,format=short,enable=${{ env.EVENT != 'tag' && env.BRANCH_NAME != 'main' }}
150151
151152
- name: Build and push mdsv2
152-
if: ${{ steps.check-event.outputs.continue == 'true' && (env.BRANCH_NAME == 'main' || env.EVENT == 'tag') }}
153+
if: steps.check-event.outputs.continue == 'true'
153154
uses: docker/build-push-action@v6
154155
with:
155156
context: ./scripts/docker/rocky9
156157
file: ./scripts/docker/rocky9/Dockerfile
157158
push: true
158-
tags: ${{ steps.meta-v2.outputs.tags }}
159+
tags: ${{ steps.image-meta.outputs.tags }}

0 commit comments

Comments
 (0)