forked from k8snetworkplumbingwg/sriov-network-operator
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: Push updated image and chart to Network Operator
Signed-off-by: Ivan Kolodiazhnyi <[email protected]>
- Loading branch information
Showing
1 changed file
with
11 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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 \ | ||
|