Skip to content

Commit

Permalink
Merge pull request k8snetworkplumbingwg#40 from e0ne/image-name
Browse files Browse the repository at this point in the history
fix: Use correct Docker image names
  • Loading branch information
e0ne authored Jan 6, 2025
2 parents 53286eb + a0bf29a commit 0d2662a
Showing 1 changed file with 14 additions and 8 deletions.
22 changes: 14 additions & 8 deletions .github/workflows/fork-ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -47,13 +47,13 @@ jobs:
matrix:
include:
- component: operator
image_name: mellanox
image_name: sriov-network-operator
dockerfile: Dockerfile
- component: config-daemon
image_name: mellanox-config-daemon
image_name: sriov-network-operator-config-daemon
dockerfile: Dockerfile.sriov-network-config-daemon
- component: webhook
image_name: mellanox-webhook
image_name: sriov-network-operator-webhook
dockerfile: Dockerfile.webhook
steps:
- uses: actions/checkout@v4
Expand Down Expand Up @@ -82,28 +82,34 @@ jobs:
DOCKER_TAG: ${{ needs.determine_docker_registry_and_tag.outputs.docker_tag }}
GH_TOKEN: ${{ secrets.GH_TOKEN_NVIDIA_CI_CD }}
steps:
- uses: actions/checkout@v4
with:
path: sriov-network-operator-fork
- uses: actions/checkout@v4
with:
token: ${{ secrets.GH_TOKEN_NVIDIA_CI_CD }}
repository: ${{ github.repository_owner }}/network-operator
path: network-opertor-fork
- name: Determine base branch
run: |
echo "BASE_BRANCH=${{ contains(env.DOCKER_TAG, 'beta') && 'master' || env.DOCKER_TAG }}" >> $GITHUB_ENV
- name: Create PR to update image tags in network-operator values
run: |
cd network-opertor-fork
git config user.name nvidia-ci-cd
git config user.email [email protected]
git checkout -b feature/update-sriov-tags-to-$DOCKER_TAG
cp -r ../sriov-network-operator/deployment/sriov-network-operator-chart/* deployment/network-operator/charts/sriov-network-operator/
cp -r ../sriov-network-operator-fork/deployment/sriov-network-operator-chart/* deployment/network-operator/charts/sriov-network-operator/
yq -i e '.SriovNetworkOperator.repository |= "${{ env.DOCKER_REGISTRY }}"' hack/release.yaml
yq -i e '.SriovNetworkOperator.version |= "${{ env.DOCKER_TAG }}"' hack/release.yaml
make release-build
if ! git diff --color --unified=0 --exit-code; then
git add deployment/network-operator/charts/sriov-network-operator
git commit -sam "task: update SR-IOV images tags to $DOCKER_TAG in chart values"
git push -u origin feature/update-sriov-tags-to-$DOCKER_TAG
gh pr create \
Expand Down

0 comments on commit 0d2662a

Please sign in to comment.