Skip to content

Commit ad81749

Browse files
committed
Merge branch 'devnet-ready' into feat/sn-owner-hotkey-change
2 parents 9946383 + 61b127a commit ad81749

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

.github/workflows/docker.yml

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,6 @@ on:
99
description: "Branch or tag to use for the Docker image tag and ref to checkout (optional)"
1010
required: false
1111
default: ""
12-
1312
push:
1413
branches:
1514
- devnet-ready
@@ -35,6 +34,13 @@ jobs:
3534
echo "tag=$branch_or_tag" >> $GITHUB_ENV
3635
echo "ref=$branch_or_tag" >> $GITHUB_ENV
3736
37+
# Check if this is a tagged release (not devnet-ready/devnet/testnet)
38+
if [[ "${{ github.event_name }}" == "release" && "$branch_or_tag" != "devnet-ready" && "$branch_or_tag" != "devnet" && "$branch_or_tag" != "testnet" ]]; then
39+
echo "latest_tag=true" >> $GITHUB_ENV
40+
else
41+
echo "latest_tag=false" >> $GITHUB_ENV
42+
fi
43+
3844
- name: Checkout code
3945
uses: actions/checkout@v4
4046
with:
@@ -60,3 +66,4 @@ jobs:
6066
push: true
6167
tags: |
6268
ghcr.io/${{ github.repository }}:${{ env.tag }}
69+
${{ env.latest_tag == 'true' && format('ghcr.io/{0}:latest', github.repository) || '' }}

0 commit comments

Comments
 (0)