File tree Expand file tree Collapse file tree 1 file changed +5
-6
lines changed
Expand file tree Collapse file tree 1 file changed +5
-6
lines changed Original file line number Diff line number Diff line change @@ -102,11 +102,10 @@ jobs:
102102
103103 git checkout -b feature/update-sriov-tags-to-$DOCKER_TAG
104104
105- # NOTE: ignore Chart.yaml changes because we refer to chart name in values.yaml and have hardcoded version.
106- cp -r ../sriov-network-operator-fork/deployment/sriov-network-operator-chart/crds/ deployment/network-operator/charts/sriov-network-operator/
107- cp -r ../sriov-network-operator-fork/deployment/sriov-network-operator-chart/templates/ deployment/network-operator/charts/sriov-network-operator/
108- cp ../sriov-network-operator-fork/deployment/sriov-network-operator-chart/README.md deployment/network-operator/charts/sriov-network-operator/
109- cp ../sriov-network-operator-fork/deployment/sriov-network-operator-chart/values.yaml deployment/network-operator/charts/sriov-network-operator/
105+ rm -rf deployment/network-operator/charts/sriov-network-operator/*
106+ cp -r ../sriov-network-operator-fork/deployment/sriov-network-operator-chart/* deployment/network-operator/charts/sriov-network-operator/
107+ # we *don't* copy `Chart.yaml` with the files below, because network-operator's `Chart.yaml` refers to the SR-IOV chart name with a hardcoded version.
108+ git checkout -- deployment/network-operator/charts/sriov-network-operator/Chart.yaml
110109
111110 yq -i e '.SriovNetworkOperator.repository |= "${{ env.DOCKER_REGISTRY }}"' hack/release.yaml
112111 yq -i e '.SriovNetworkOperator.version |= "${{ env.DOCKER_TAG }}"' hack/release.yaml
@@ -120,7 +119,7 @@ jobs:
120119 git add deployment/network-operator/charts/sriov-network-operator
121120 git add -u
122121 git commit -sam "cicd: update SR-IOV images tags to $DOCKER_TAG in chart values"
123- git push -u origin feature/update-sriov-tags-to-$DOCKER_TAG
122+ git push -f - u origin feature/update-sriov-tags-to-$DOCKER_TAG
124123 gh pr create \
125124 --repo ${{ github.repository_owner }}/network-operator \
126125 --base $BASE_BRANCH \
You can’t perform that action at this time.
0 commit comments