Skip to content

Commit

Permalink
feat: add latest tags
Browse files Browse the repository at this point in the history
Signed-off-by: You-Sheng Yang <[email protected]>
  • Loading branch information
vicamo committed May 7, 2024
1 parent 46d01de commit df860a0
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions .github/workflows/per-suite.yml
Original file line number Diff line number Diff line change
Expand Up @@ -219,6 +219,9 @@ jobs:
tags=(--tag "${tag}")
if [ -n "${SUITE}" ]; then
tags+=(--tag "${REPOSITORY}:${SUITE}-${arch}${flavor:+-${flavor}}")
if [ "${SUITE}" = "stable" ]; then
tags+=(--tag "${REPOSITORY}:latest-${arch}${flavor:+-${flavor}}")
fi
fi
if ! (printf "FROM scratch\nADD rootfs.tar.xz /\nCMD [\"/bin/bash\"]" | \
Expand Down Expand Up @@ -256,6 +259,9 @@ jobs:
tags=(--tag "${tag}")
if [ -n "${SUITE}" ]; then
tags+=(--tag "${REPOSITORY}:${SUITE}${flavor:+-${flavor}}")
if [ "${SUITE}" = "stable" ]; then
tags+=(--tag "${REPOSITORY}:latest${flavor:+-${flavor}}")
fi
fi
${DRY_RUN:+echo} docker buildx imagetools create \
Expand Down

0 comments on commit df860a0

Please sign in to comment.