forked from meaningful-ooo/docker-fish
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
7d1f37f
commit 4d6dcc0
Showing
1 changed file
with
5 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -33,6 +33,10 @@ jobs: | |
- name: Checkout | ||
uses: actions/checkout@v4 | ||
|
||
- name: Detect latest item from matrix | ||
id: detect-latest-tag | ||
run: echo "IS_LATEST=$([ $(expr ${{ strategy.job-index }} + 1) = ${{ strategy.job-total }} ] && echo true || echo false)" >> "$GITHUB_OUTPUT" | ||
|
||
- name: Docker meta | ||
id: meta | ||
uses: docker/[email protected] | ||
|
@@ -44,6 +48,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=${{ steps.detect-latest-tag.outputs.IS_LATEST }} | ||
flavor: | | ||
latest=false | ||
|