From 2cf61fbf165e3113d5d36cf5c256a7fe07f904f0 Mon Sep 17 00:00:00 2001 From: Alexander Maslennikov Date: Thu, 3 Apr 2025 16:13:42 +0200 Subject: [PATCH] Add reusable release workflows Signed-off-by: Alexander Maslennikov --- .github/workflows/fork-ci.yml | 21 +++++++++++++++++++++ .github/workflows/fork-sync.yml | 15 +++++++++++++++ 2 files changed, 36 insertions(+) create mode 100644 .github/workflows/fork-ci.yml create mode 100644 .github/workflows/fork-sync.yml diff --git a/.github/workflows/fork-ci.yml b/.github/workflows/fork-ci.yml new file mode 100644 index 000000000..547fa3df0 --- /dev/null +++ b/.github/workflows/fork-ci.yml @@ -0,0 +1,21 @@ +name: Fork Release CI + +on: + push: + branches: + - network-operator-* + tags: + - network-operator-* + +jobs: + call-reusable-ci-fork-workflow: + uses: Mellanox/cloud-orchestration-reusable-workflows/.github/workflows/fork-ci-reusable.yml@main + with: + registry-internal: nvcr.io/nvstaging/mellanox + service-account-username: nvidia-cicd + service-account-email: svc-cloud-orch-gh@nvidia.com + components: '[{"name": "Multus", "imageName": "multus-cni", "Dockerfile": "images/Dockerfile"}]' + secrets: + registry-username: ${{ github.repository_owner }} + registry-token: ${{ secrets.GITHUB_TOKEN }} + cicd-gh-token: ${{ secrets.GH_TOKEN_NVIDIA_CI_CD }} diff --git a/.github/workflows/fork-sync.yml b/.github/workflows/fork-sync.yml new file mode 100644 index 000000000..5bdae73e5 --- /dev/null +++ b/.github/workflows/fork-sync.yml @@ -0,0 +1,15 @@ +name: Fork Sync + +on: + schedule: + - cron: '0 0 * * *' # nightly + workflow_dispatch: # enable manual trigger + +jobs: + call-reusable-sync-fork-workflow: + uses: Mellanox/cloud-orchestration-reusable-workflows/.github/workflows/fork-sync-reusable.yml@main + with: + upstream-owner: k8snetworkplumbingwg + default-branch: master + secrets: + gh_token: ${{ secrets.GITHUB_TOKEN }}