Skip to content
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

fix(action): downgrade qemu #2320

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 @@ -55,7 +55,7 @@ jobs:
fi

- name: Set up QEMU
uses: docker/setup-qemu-action@v3
uses: docker/setup-qemu-action@v3.3.0
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3
- name: Login to Docker Hub
Expand Down
44 changes: 22 additions & 22 deletions .github/workflows/github-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,31 +35,31 @@ jobs:
mkdir -p core/build/distributions/latest
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
IS_LATEST=true
fi
echo "IS_LATEST=$IS_LATEST" >> $GITHUB_OUTPUT
for file in core/build/distributions/automq-*.tgz; do
if [[ ! "$file" =~ site-docs ]]; then
if [ "$IS_LATEST" = "true" ]; then
echo "Find latest tgz file: $file"
cp "$file" core/build/distributions/latest/automq-kafka-latest.tgz
fi
else
echo "Skip and remove site-docs file: $file"
rm "$file"
fi
done

- uses: jakejarvis/s3-sync-action@master
name: s3-upload-latest
if: ${{ github.repository_owner == 'AutoMQ' }}
- uses: tvrcgo/oss-action@master
name: upload-latest
if: ${{ github.repository_owner == 'AutoMQ' && env.IS_LATEST == 'true' }}
with:
args: --follow-symlinks
env:
AWS_S3_ENDPOINT: ${{ secrets.UPLOAD_ENDPOINT }}
AWS_S3_BUCKET: ${{ secrets.UPLOAD_BUCKET }}
AWS_ACCESS_KEY_ID: ${{ secrets.UPLOAD_BUCKET_AK }}
AWS_SECRET_ACCESS_KEY: ${{ secrets.UPLOAD_BUCKET_SK }}
AWS_REGION: 'cn-hangzhou'
SOURCE_DIR: 'core/build/distributions/latest'
DEST_DIR: 'community_edition/artifacts'
bucket: ${{ secrets.UPLOAD_BUCKET }}
key-id: ${{ secrets.UPLOAD_BUCKET_AK }}
key-secret: ${{ secrets.UPLOAD_BUCKET_SK }}
region: 'oss-cn-hangzhou'
assets: |
core/build/distributions/latest/automq-kafka-latest.tgz:community_edition/artifacts/automq-kafka-latest.tgz

- name: GitHub Release
uses: softprops/action-gh-release@v1
Expand Down