Skip to content

Commit

Permalink
Use branch-ref on second upload when doing release
Browse files Browse the repository at this point in the history
We should not do from tag since we already created the ref previously
and since now we fail on error it will fail here, so let's update
directly to the released branch

Signed-off-by: Chmouel Boudjnah <[email protected]>
  • Loading branch information
chmouel committed Nov 18, 2021
1 parent c1860d7 commit f0502f5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion .tekton/release-pipeline.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ spec:
--message "OpenShift release.yaml generated for Release ${TARGET_BRANCH}" \
--owner-repository openshift-pipelines/pipelines-as-code \
--token ${HUB_TOKEN} \
--from-tag=refs/tags/${TARGET_BRANCH} \
--branch-ref refs/heads/release-${TARGET_BRANCH} \
-d release-${TARGET_BRANCH}.yaml -f <(env TARGET_OPENSHIFT=true ./hack/generate-releaseyaml.sh)
exit 0
- name: gorelease
Expand Down

0 comments on commit f0502f5

Please sign in to comment.