Skip to content

Commit f7bf615

Browse files
Update main.yml
1 parent 670f963 commit f7bf615

1 file changed

Lines changed: 18 additions & 1 deletion

File tree

.github/workflows/main.yml

Lines changed: 18 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -90,9 +90,26 @@ jobs:
9090
echo "NVIDIA_API_KEY=${NVIDIA_API_KEY}" >> deploy/compose/.env
9191
echo "LLM_NIM_URL=https://integrate.api.nvidia.com/v1" >> deploy/compose/.env
9292
93+
echo "✅ .env file configured at deploy/compose/.env"
94+
95+
# scripts/setup/dev_up.sh sources and edits .env in the repository root (cwd), not deploy/compose/.env
9396
cp deploy/compose/.env .env
97+
echo "✅ Root .env synced for dev_up.sh"
9498
95-
echo "✅ .env file configured at deploy/compose/.env"
99+
# Prerequisite: Authenticate Docker to NGC registry for private NIM image pulls
100+
- name: "Authenticate Docker to nvcr.io"
101+
env:
102+
NVIDIA_API_KEY: ${{ secrets.NVIDIA_API_KEY }}
103+
run: |
104+
if [ -z "${NVIDIA_API_KEY}" ]; then
105+
echo "❌ Missing required secret: NVIDIA_API_KEY"
106+
echo " Set NVIDIA_API_KEY to an NGC registry API key with Catalog/registry access."
107+
exit 1
108+
fi
109+
110+
echo "Logging into nvcr.io..."
111+
echo "${NVIDIA_API_KEY}" | docker login nvcr.io -u '$oauthtoken' --password-stdin
112+
echo "✅ Docker authenticated to nvcr.io"
96113
97114
# Step 5: Start infrastructure services
98115
- name: "Step 5: Start infrastructure services"

0 commit comments

Comments
 (0)