Skip to content

fix(action): try fix docker build with update platform #2318

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Feb 19, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/docker-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ jobs:
name: Docker Image Release
strategy:
matrix:
platform: [ "ubuntu-22.04" ]
platform: [ "ubuntu-24.04" ]
jdk: ["17"]
runs-on: ${{ matrix.platform }}
permissions:
Expand Down
25 changes: 14 additions & 11 deletions .github/workflows/github-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,22 +33,25 @@ jobs:
run: |
./gradlew -Pprefix=automq-${{ github.ref_name }}_ --build-cache --refresh-dependencies clean releaseTarGz
mkdir -p core/build/distributions/latest
for file in core/build/distributions/automq-*.tgz; do
if [[ ! "$file" =~ site-docs ]]; then
echo "Find latest tgz file: $file"
cp "$file" core/build/distributions/latest/automq-kafka-latest.tgz
break
else
echo "Skip and remove site-docs file: $file"
rm "$file"
fi
done
LATEST_TAG=$(git tag --sort=-v:refname | grep -E '^[0-9]+\.[0-9]+\.[0-9]+$' | head -n 1)
if [ "$LATEST_TAG" == "${{ github.ref_name }}" ]; then
for file in core/build/distributions/automq-*.tgz; do
if [[ ! "$file" =~ site-docs ]]; then
echo "Find latest tgz file: $file"
cp "$file" core/build/distributions/latest/automq-kafka-latest.tgz
break
else
echo "Skip and remove site-docs file: $file"
rm "$file"
fi
done
fi

- uses: jakejarvis/s3-sync-action@master
name: s3-upload-latest
if: ${{ github.repository_owner == 'AutoMQ' }}
with:
args: --follow-symlinks --delete
args: --follow-symlinks
env:
AWS_S3_ENDPOINT: ${{ secrets.UPLOAD_ENDPOINT }}
AWS_S3_BUCKET: ${{ secrets.UPLOAD_BUCKET }}
Expand Down