diff --git a/.github/workflows/build-images.yml b/.github/workflows/build-images.yml index 9654ea6..5e99194 100644 --- a/.github/workflows/build-images.yml +++ b/.github/workflows/build-images.yml @@ -33,6 +33,9 @@ jobs: - name: Checkout uses: actions/checkout@v4 + - name: Detect latest item from matrix + run: | + echo "IS_LATEST_VERSION=$([ $(expr ${{ strategy.job-index }} + 1) = ${{ strategy.job-total }} ] && echo true)" >> "$GITHUB_ENV" - name: Docker meta id: meta uses: docker/metadata-action@v5.5.0 @@ -44,6 +47,7 @@ jobs: # generate Docker tags based on the following events/attributes tags: | type=semver,pattern={{version}},value=${{matrix.version.fish}} + type=raw,value=latest,enable=$IS_LATEST_VERSION flavor: | latest=false