Skip to content

Commit f843801

Browse files
authored
Merge pull request #1373 from opentensor/devnet-ready
devnet deploy 3/10/2025
2 parents b36490c + 1b40d1d commit f843801

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

80 files changed

+4461
-2161
lines changed

.github/workflows/docker.yml

+9-1
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:
@@ -58,5 +64,7 @@ jobs:
5864
with:
5965
context: .
6066
push: true
67+
platforms: linux/amd64,linux/arm64
6168
tags: |
6269
ghcr.io/${{ github.repository }}:${{ env.tag }}
70+
${{ env.latest_tag == 'true' && format('ghcr.io/{0}:latest', github.repository) || '' }}

0 commit comments

Comments
 (0)