From dc6bb3997482c541140e12bf6796b334b66c4ba8 Mon Sep 17 00:00:00 2001 From: Josh Kalderimis Date: Fri, 8 Dec 2023 14:54:57 +1300 Subject: [PATCH] add support for a docker image tag using the commit sha (#1135) --- .github/workflows/ci.yml | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 211bb11f0..50c5020d4 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -124,8 +124,10 @@ jobs: with: images: ghcr.io/nerves-hub/nerves-hub tags: | - # set latest tag for default branch - type=raw,value=latest,enable={{is_default_branch}} + # short sha + type=sha,enable={{is_default_branch}},prefix=,suffix=,format=short + # latest tag for main branch + type=raw,enable={{is_default_branch}},value=latest # tag event (eg. "v1.2.3") type=ref,event=tag