Skip to content

Commit 823c707

Browse files
authored
Merge branch 'main' into rkalani/translate
2 parents 6e32a16 + dc30814 commit 823c707

3 files changed

Lines changed: 6 additions & 83 deletions

File tree

‎.github/actions/build-container/action.yml‎

Lines changed: 4 additions & 35 deletions
Original file line numberDiff line numberDiff line change
@@ -15,22 +15,12 @@
1515
name: Build container
1616

1717
inputs:
18-
azure-client-id:
19-
description: "Azure Client ID"
20-
required: true
21-
azure-tenant-id:
22-
description: "Azure Tenant ID"
23-
required: true
24-
azure-subscription-id:
25-
description: "Azure Subscription ID"
18+
container-registry:
19+
description: "Container registry to push/pull images"
2620
required: true
2721
dockerfile-path:
2822
description: "Path to dockerfile to build"
2923
required: true
30-
has-azure-credentials:
31-
description: "Has Azure credentials"
32-
required: false
33-
default: "false"
3424
PAT:
3525
description: "GitHub Personal Access Token"
3626
required: true
@@ -39,9 +29,6 @@ inputs:
3929
required: true
4030
type: string
4131

42-
env:
43-
container-registry: nemoci.azurecr.io
44-
4532
runs:
4633
using: "composite"
4734
steps:
@@ -58,26 +45,6 @@ runs:
5845
if: startsWith(github.ref, 'refs/heads/pull-request/')
5946
uses: nv-gha-runners/get-pr-info@main
6047

61-
- name: Install Azure CLI
62-
shell: bash
63-
run: |
64-
echo "::group::Install Azure CLI"
65-
# Create systemd override for proper dependencies
66-
curl -sL https://aka.ms/InstallAzureCLIDeb | sudo bash
67-
echo "::endgroup::"
68-
69-
- name: Azure Login
70-
uses: azure/login@v2
71-
with:
72-
client-id: ${{ inputs.azure-client-id }}
73-
tenant-id: ${{ inputs.azure-tenant-id }}
74-
subscription-id: ${{ inputs.azure-subscription-id }}
75-
76-
- name: Azure ACR Login
77-
shell: bash
78-
run: |
79-
az acr login --name nemoci
80-
8148
- name: Install GH CLI
8249
shell: bash
8350
run: |
@@ -91,8 +58,10 @@ runs:
9158
shell: bash
9259
env:
9360
REPO: ${{ inputs.repo-name }}
61+
REGISTRY: ${{ inputs.container-registry }}
9462
run: |
9563
echo "REPO_LOWER=${REPO,,}" >> "$GITHUB_ENV"
64+
echo "container-registry=${REGISTRY}" >> "$GITHUB_ENV"
9665
9766
- name: Get last merged PR
9867
shell: bash

‎.github/actions/test-template/action.yml‎

Lines changed: 0 additions & 39 deletions
Original file line numberDiff line numberDiff line change
@@ -35,19 +35,6 @@ inputs:
3535
description: "Run tests on CPU only"
3636
required: false
3737
default: "false"
38-
azure-client-id:
39-
description: "Azure Client ID"
40-
required: true
41-
azure-tenant-id:
42-
description: "Azure Tenant ID"
43-
required: true
44-
azure-subscription-id:
45-
description: "Azure Subscription ID"
46-
required: true
47-
has-azure-credentials:
48-
description: "Has Azure credentials"
49-
required: false
50-
default: "false"
5138
HF_TOKEN:
5239
description: "Hugging Face Token"
5340
required: true
@@ -74,30 +61,6 @@ inputs:
7461
runs:
7562
using: "composite"
7663
steps:
77-
- name: Install Azure CLI
78-
if: ${{ inputs.has-azure-credentials == 'true' }}
79-
shell: bash
80-
run: |
81-
for i in 1 2 3; do
82-
curl -sL https://aka.ms/InstallAzureCLIDeb | sudo bash && break
83-
echo "Attempt $i failed, retrying in 10s..."
84-
sleep 10
85-
done
86-
87-
- name: Azure Login
88-
if: ${{ inputs.has-azure-credentials == 'true' }}
89-
uses: azure/login@v2
90-
with:
91-
client-id: ${{ inputs.azure-client-id }}
92-
tenant-id: ${{ inputs.azure-tenant-id }}
93-
subscription-id: ${{ inputs.azure-subscription-id }}
94-
95-
- name: Azure ACR Login
96-
if: ${{ inputs.has-azure-credentials == 'true' }}
97-
shell: bash
98-
run: |
99-
az acr login --name nemoci
100-
10164
- name: Install uuidgen
10265
shell: bash -x -e -u -o pipefail {0}
10366
if: ${{ contains(inputs.runner, 'aws') }}
@@ -113,8 +76,6 @@ runs:
11376
env:
11477
HF_TOKEN: ${{ inputs.HF_TOKEN }}
11578
run: |
116-
MNT_PATH=${{ steps.azure-fileshare.outputs.mnt_path }}
117-
11879
ARG=("")
11980
if [[ "${{ inputs.cpu-only }}" == "false" ]]; then
12081
ARG=("--runtime=nvidia --gpus all")

‎.github/workflows/cicd-main.yml‎

Lines changed: 2 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ permissions:
3131
actions: write # Required for gh run cancel
3232

3333
env:
34-
container-registry: nemoci.azurecr.io
34+
container-registry: ${{ vars.DEFAULT_CONTAINER_REGISTRY }}
3535
UV_HTTP_TIMEOUT: 60
3636

3737
jobs:
@@ -138,11 +138,8 @@ jobs:
138138
- name: main
139139
uses: ./.github/actions/build-container
140140
with:
141-
azure-client-id: ${{ secrets.AZURE_CLIENT_ID }}
142-
azure-tenant-id: ${{ secrets.AZURE_TENANT_ID }}
143-
azure-subscription-id: ${{ secrets.AZURE_SUBSCRIPTION_ID }}
141+
container-registry: ${{ env.container-registry }}
144142
dockerfile-path: "./docker/Dockerfile"
145-
has-azure-credentials: "true"
146143
PAT: ${{ secrets.PAT }}
147144
repo-name: "Curator"
148145

@@ -198,10 +195,6 @@ jobs:
198195
with:
199196
script: L0_Unit_Test_GPU
200197
is_unit_test: "false"
201-
has-azure-credentials: "true"
202-
azure-client-id: ${{ secrets.AZURE_CLIENT_ID }}
203-
azure-tenant-id: ${{ secrets.AZURE_TENANT_ID }}
204-
azure-subscription-id: ${{ secrets.AZURE_SUBSCRIPTION_ID }}
205198
HF_TOKEN: ${{ secrets.HF_TOKEN }}
206199
PAT: ${{ secrets.PAT }}
207200
timeout: 40

0 commit comments

Comments
 (0)