Skip to content

Commit 48fd1a1

Browse files
Merge pull request #1 from maze88/feature/fork-setup
Feature/fork setup
2 parents 534ed17 + 6ba291e commit 48fd1a1

File tree

6 files changed

+2461
-0
lines changed

6 files changed

+2461
-0
lines changed

.github/workflows/fork-ci.yml

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
# 2025 NVIDIA CORPORATION & AFFILIATES
2+
#
3+
# Licensed under the Apache License, Version 2.0 (the "License");
4+
# you may not use this file except in compliance with the License.
5+
# You may obtain a copy of the License at
6+
#
7+
# http://www.apache.org/licenses/LICENSE-2.0
8+
#
9+
# Unless required by applicable law or agreed to in writing, software
10+
# distributed under the License is distributed on an "AS IS" BASIS,
11+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12+
# See the License for the specific language governing permissions and
13+
# limitations under the License.
14+
name: Fork Release CI
15+
16+
on:
17+
push:
18+
tags:
19+
- network-operator-*
20+
21+
jobs:
22+
call-reusable-ci-fork-workflow:
23+
uses: Mellanox/cloud-orchestration-reusable-workflows/.github/workflows/fork-ci-reusable.yml@main
24+
with:
25+
registry-internal: nvcr.io/nvstaging/mellanox
26+
service-account-username: nvidia-ci-cd
27+
service-account-email: [email protected]
28+
components: '[{"name": "CniPlugins", "imageName": "plugins", "Dockerfile": "Dockerfile.nvidia"}]'
29+
secrets:
30+
registry-username: ${{ secrets.NVCR_USERNAME }}
31+
registry-token: ${{ secrets.NVCR_TOKEN }}
32+
cicd-gh-token: ${{ secrets.GH_TOKEN_NVIDIA_CI_CD }}

.github/workflows/fork-sync.yml

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
# 2025 NVIDIA CORPORATION & AFFILIATES
2+
#
3+
# Licensed under the Apache License, Version 2.0 (the "License");
4+
# you may not use this file except in compliance with the License.
5+
# You may obtain a copy of the License at
6+
#
7+
# http://www.apache.org/licenses/LICENSE-2.0
8+
#
9+
# Unless required by applicable law or agreed to in writing, software
10+
# distributed under the License is distributed on an "AS IS" BASIS,
11+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12+
# See the License for the specific language governing permissions and
13+
# limitations under the License.
14+
name: Fork Sync
15+
16+
on:
17+
schedule:
18+
- cron: '0 0 * * *' # nightly
19+
workflow_dispatch: # enable manual trigger
20+
21+
jobs:
22+
call-reusable-sync-fork-workflow:
23+
uses: Mellanox/cloud-orchestration-reusable-workflows/.github/workflows/fork-sync-reusable.yml@main
24+
with:
25+
upstream-owner: k8snetworkplumbingwg
26+
upstream-repo: plugins
27+
default-branch: releas
28+
secrets:
29+
gh_token: ${{ secrets.GITHUB_TOKEN }}

Dockerfile

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,19 @@
1+
# Copyright 2025 NVIDIA CORPORATION & AFFILIATES
2+
#
3+
# Licensed under the Apache License, Version 2.0 (the "License");
4+
# you may not use this file except in compliance with the License.
5+
# You may obtain a copy of the License at
6+
#
7+
# http://www.apache.org/licenses/LICENSE-2.0
8+
#
9+
# Unless required by applicable law or agreed to in writing, software
10+
# distributed under the License is distributed on an "AS IS" BASIS,
11+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12+
# See the License for the specific language governing permissions and
13+
# limitations under the License.
14+
#
15+
# SPDX-License-Identifier: Apache-2.0
16+
117
ARG BASE_IMAGE=quay.io/centos/centos:stream9
218

319
FROM ${BASE_IMAGE}

Dockerfile.nvidia

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
ARG BASE_IMAGE=nvcr.io/nvidia/doca/doca:3.0.0-base-rt-cuda12.8.0
2+
3+
FROM ${BASE_IMAGE}
4+
5+
WORKDIR /
6+
7+
ARG VERSION=v1.3.0
8+
ARG TARGETARCH
9+
ENV TARGETARCH=${TARGETARCH:-amd64}
10+
11+
RUN mkdir -p /usr/src/cni/bin && \
12+
curl -L -O https://github.com/containernetworking/plugins/releases/download/${VERSION}/cni-plugins-linux-${TARGETARCH}-${VERSION}.tgz && \
13+
tar -xvf cni-plugins-linux-${TARGETARCH}-${VERSION}.tgz -C /usr/src/cni/bin/ && \
14+
echo done
15+
16+
LABEL io.k8s.display-name="Container Network Plugins"
17+
18+
ADD ./entrypoint.sh /
19+
20+
ENTRYPOINT ["/entrypoint.sh"]

0 commit comments

Comments
 (0)