SeaweedFS is a distributed storage system for object storage (S3), file systems, Iceberg table buckets, and Lance vector buckets, designed to handle billions of files with O(1) disk access and effortless horizontal scaling.
Go blob-storagecloud-drivedistributed-file-systemdistributed-storageerasure-codingfusehadoop-hdfshdfskuberneteslancelancedbobject-storageposixs3s3-storageseaweedfstiered-file-systemvector-search
ci: fix container_release_unified manual dispatch and workflow parsing (#8293)
Chris Lu2d976853906b
diff --git a/.github/workflows/container_release_unified.yml b/.github/workflows/container_release_unified.ymlindex b40de20ac7..2b82e82459 100644--- a/.github/workflows/container_release_unified.yml+++ b/.github/workflows/container_release_unified.yml@@ -41,10 +41,6 @@ concurrency:jobs:build:runs-on: ubuntu-latest- if: |- github.event_name != 'workflow_dispatch' ||- github.event.inputs.variant == 'all' ||- github.event.inputs.variant == matrix.variantstrategy:# Build sequentially to avoid rate limitsmax-parallel: 2@@ -87,9 +83,11 @@ jobs:steps:- name: Checkout+ if: github.event_name != 'workflow_dispatch' || github.event.inputs.variant == 'all' || github.event.inputs.variant == matrix.variantuses: actions/checkout@v6- name: Free Disk Space+ if: github.event_name != 'workflow_dispatch' || github.event.inputs.variant == 'all' || github.event.inputs.variant == matrix.variantrun: |echo "Available disk space before cleanup:"df -h@@ -103,6 +101,7 @@ jobs:df -h- name: Docker meta+ if: github.event_name != 'workflow_dispatch' || github.event.inputs.variant == 'all' || github.event.inputs.variant == matrix.variantid: docker_metauses: docker/metadata-action@v5with:@@ -117,10 +116,11 @@ jobs:org.opencontainers.image.vendor=Chris Lu- name: Set up QEMU- if: contains(matrix.platforms, 'arm')+ if: (github.event_name != 'workflow_dispatch' || github.event.inputs.variant == 'all' || github.event.inputs.variant == matrix.variant) && contains(matrix.platforms, 'arm')uses: docker/setup-qemu-action@v3- name: Create BuildKit config+ if: github.event_name != 'workflow_dispatch' || github.event.inputs.variant == 'all' || github.event.inputs.variant == matrix.variantrun: |cat > /tmp/buildkitd.toml <<EOF[registry."docker.io"]@@ -128,19 +128,20 @@ jobs:EOF- name: Set up Docker Buildx+ if: github.event_name != 'workflow_dispatch' || github.event.inputs.variant == 'all' || github.event.inputs.variant == matrix.variantuses: docker/setup-buildx-action@v3with:buildkitd-config: /tmp/buildkitd.toml- name: Login to Docker Hub- if: github.event_name != 'pull_request'+ if: (github.event_name != 'workflow_dispatch' || github.event.inputs.variant == 'all' || github.event.inputs.variant == matrix.variant) && github.event_name != 'pull_request'uses: docker/login-action@v3with:username: ${{ secrets.DOCKER_USERNAME }}password: ${{ secrets.DOCKER_PASSWORD }}- name: Login to GHCR- if: github.event_name != 'pull_request'+ if: (github.event_name != 'workflow_dispatch' || github.event.inputs.variant == 'all' || github.event.inputs.variant == matrix.variant) && github.event_name != 'pull_request'uses: docker/login-action@v3with:registry: ghcr.io@@ -148,6 +149,7 @@ jobs:password: ${{ secrets.GHCR_TOKEN }}- name: Build and push ${{ matrix.variant }}+ if: github.event_name != 'workflow_dispatch' || github.event.inputs.variant == 'all' || github.event.inputs.variant == matrix.variantuses: docker/build-push-action@v6env:DOCKER_BUILDKIT: 1@@ -169,7 +171,7 @@ jobs:${{ matrix.variant == 'rocksdb' && format('ROCKSDB_VERSION={0}', github.event.inputs.rocksdb_version || 'v10.10.1') || '' }}- name: Clean up build artifacts- if: always()+ if: always() && (github.event_name != 'workflow_dispatch' || github.event.inputs.variant == 'all' || github.event.inputs.variant == matrix.variant)run: |sudo docker system prune -fsudo rm -rf /tmp/go-build*@@ -177,13 +179,7 @@ jobs:copy-to-dockerhub:runs-on: ubuntu-latestneeds: [build]- if: |- github.event_name != 'pull_request' &&- (- github.event_name != 'workflow_dispatch' ||- github.event.inputs.variant == 'all' ||- github.event.inputs.variant == matrix.variant- )+ if: github.event_name != 'pull_request'strategy:matrix:variant: [normal, large_disk, full, large_disk_full, rocksdb]@@ -201,12 +197,14 @@ jobs:steps:- name: Login to Docker Hub+ if: github.event_name != 'workflow_dispatch' || github.event.inputs.variant == 'all' || github.event.inputs.variant == matrix.variantuses: docker/login-action@v3with:username: ${{ secrets.DOCKER_USERNAME }}password: ${{ secrets.DOCKER_PASSWORD }}- name: Login to GHCR+ if: github.event_name != 'workflow_dispatch' || github.event.inputs.variant == 'all' || github.event.inputs.variant == matrix.variantuses: docker/login-action@v3with:registry: ghcr.io@@ -214,6 +212,7 @@ jobs:password: ${{ secrets.GHCR_TOKEN }}- name: Install crane+ if: github.event_name != 'workflow_dispatch' || github.event.inputs.variant == 'all' || github.event.inputs.variant == matrix.variantrun: |cd $(mktemp -d)curl -sL "https://github.com/google/go-containerregistry/releases/latest/download/go-containerregistry_Linux_x86_64.tar.gz" | tar xz@@ -221,6 +220,7 @@ jobs:crane version- name: Copy ${{ matrix.variant }} from GHCR to Docker Hub+ if: github.event_name != 'workflow_dispatch' || github.event.inputs.variant == 'all' || github.event.inputs.variant == matrix.variantrun: |# Function to retry with exponential backoffretry_with_backoff() {