File tree Expand file tree Collapse file tree 1 file changed +8
-1
lines changed Expand file tree Collapse file tree 1 file changed +8
-1
lines changed Original file line number Diff line number Diff line change 9
9
description : " Branch or tag to use for the Docker image tag and ref to checkout (optional)"
10
10
required : false
11
11
default : " "
12
-
13
12
push :
14
13
branches :
15
14
- devnet-ready
35
34
echo "tag=$branch_or_tag" >> $GITHUB_ENV
36
35
echo "ref=$branch_or_tag" >> $GITHUB_ENV
37
36
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
+
38
44
- name : Checkout code
39
45
uses : actions/checkout@v4
40
46
with :
60
66
push : true
61
67
tags : |
62
68
ghcr.io/${{ github.repository }}:${{ env.tag }}
69
+ ${{ env.latest_tag == 'true' && format('ghcr.io/{0}:latest', github.repository) || '' }}
You can’t perform that action at this time.
0 commit comments