From 883dead8b5943d949567f26ff6ce8f9441f55666 Mon Sep 17 00:00:00 2001 From: Andrew Azores Date: Tue, 6 Feb 2024 18:01:49 -0500 Subject: [PATCH] ci(build): build latest release version (#6) --- .github/workflows/ci.yml | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 3d2d37e..b57181a 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -34,6 +34,8 @@ jobs: sudo apt-get install -y qemu-user-static - name: Get date tag run: echo "DATE_TAG=$(date -uI)" >> "$GITHUB_ENV" + - name: Get SeaweedFS release ref + run: echo "SEAWEED_REF=$(gh release list --repo=seaweedfs/seaweedfs | head -n1 | column -t | cut -d ' ' -f 1)" - name: Build container images and manifest id: buildah-build uses: redhat-actions/buildah-build@v2 @@ -41,6 +43,8 @@ jobs: image: ${{ env.CI_IMG }} archs: amd64, arm64 tags: ${{ github.ref_name }} ${{ github.ref == 'refs/heads/main' && 'latest' || '' }} ${{ env.DATE_TAG }} + build-args: | + ref=${{ env.SEAWEED_REF }} containerfiles: | ./Dockerfile - name: Push to quay.io