File tree 2 files changed +15
-12
lines changed 2 files changed +15
-12
lines changed Original file line number Diff line number Diff line change 12
12
name : Docker Image Release
13
13
strategy :
14
14
matrix :
15
- platform : [ "ubuntu-22 .04" ]
15
+ platform : [ "ubuntu-24 .04" ]
16
16
jdk : ["17"]
17
17
runs-on : ${{ matrix.platform }}
18
18
permissions :
Original file line number Diff line number Diff line change @@ -33,22 +33,25 @@ jobs:
33
33
run : |
34
34
./gradlew -Pprefix=automq-${{ github.ref_name }}_ --build-cache --refresh-dependencies clean releaseTarGz
35
35
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
46
49
47
50
- uses : jakejarvis/s3-sync-action@master
48
51
name : s3-upload-latest
49
52
if : ${{ github.repository_owner == 'AutoMQ' }}
50
53
with :
51
- args : --follow-symlinks --delete
54
+ args : --follow-symlinks
52
55
env :
53
56
AWS_S3_ENDPOINT : ${{ secrets.UPLOAD_ENDPOINT }}
54
57
AWS_S3_BUCKET : ${{ secrets.UPLOAD_BUCKET }}
You can’t perform that action at this time.
0 commit comments