Skip to content

Commit 60bd7b8

Browse files
authored
fix(action): try fix docker build with update platform (#2318)
Signed-off-by: Robin Han <[email protected]>
1 parent a76659d commit 60bd7b8

File tree

2 files changed

+15
-12
lines changed

2 files changed

+15
-12
lines changed

.github/workflows/docker-release.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ jobs:
1212
name: Docker Image Release
1313
strategy:
1414
matrix:
15-
platform: [ "ubuntu-22.04" ]
15+
platform: [ "ubuntu-24.04" ]
1616
jdk: ["17"]
1717
runs-on: ${{ matrix.platform }}
1818
permissions:

.github/workflows/github-release.yml

Lines changed: 14 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -33,22 +33,25 @@ jobs:
3333
run: |
3434
./gradlew -Pprefix=automq-${{ github.ref_name }}_ --build-cache --refresh-dependencies clean releaseTarGz
3535
mkdir -p core/build/distributions/latest
36-
for file in core/build/distributions/automq-*.tgz; do
37-
if [[ ! "$file" =~ site-docs ]]; then
38-
echo "Find latest tgz file: $file"
39-
cp "$file" core/build/distributions/latest/automq-kafka-latest.tgz
40-
break
41-
else
42-
echo "Skip and remove site-docs file: $file"
43-
rm "$file"
44-
fi
45-
done
36+
LATEST_TAG=$(git tag --sort=-v:refname | grep -E '^[0-9]+\.[0-9]+\.[0-9]+$' | head -n 1)
37+
if [ "$LATEST_TAG" == "${{ github.ref_name }}" ]; then
38+
for file in core/build/distributions/automq-*.tgz; do
39+
if [[ ! "$file" =~ site-docs ]]; then
40+
echo "Find latest tgz file: $file"
41+
cp "$file" core/build/distributions/latest/automq-kafka-latest.tgz
42+
break
43+
else
44+
echo "Skip and remove site-docs file: $file"
45+
rm "$file"
46+
fi
47+
done
48+
fi
4649
4750
- uses: jakejarvis/s3-sync-action@master
4851
name: s3-upload-latest
4952
if: ${{ github.repository_owner == 'AutoMQ' }}
5053
with:
51-
args: --follow-symlinks --delete
54+
args: --follow-symlinks
5255
env:
5356
AWS_S3_ENDPOINT: ${{ secrets.UPLOAD_ENDPOINT }}
5457
AWS_S3_BUCKET: ${{ secrets.UPLOAD_BUCKET }}

0 commit comments

Comments
 (0)