#1297  Pushing tags in CI/CD
Closed
Unknown opened 1 year ago

I am trying to use push to remote CI/CD task to push all commits and tags, but only the commits are being pushed, not the tags.

I believe this could be related to issue #788 so I assume it is not a bug and I am doing something wrong.

Would anyone mind helping?

Thanks,
Polarian

Robin Shen commented 1 year ago

The push to remote only pushes current commit to same remote ref. If you want to push all tags, use a custom command to do that.

Unknown commented 1 year ago

@robin can you give an example of how to push tags and the refs to github using a variable for authentication. It seems you have more experience with this!

Thank you :)

Robin Shen commented 1 year ago

Check this: https://code.onedev.io/onedev/server/~files/main/.onedev-buildspec.yml?position=buildspec-jobs/Sync+Main+%28GitHub%29

You may change the command line to call push --tags as appropriate.

Unknown commented 1 year ago

Thats for the help!

Unknown changed state to 'Closed' 1 year ago
Previous Value Current Value
Open
Closed
issue 1 of 1
Type
Question
Priority
Normal
Assignee
Issue Votes (0)
Watchers (3)
Reference
onedev/server#1297
Please wait...
Page is in error, reload to recover