Skip to content
This repository has been archived by the owner on Apr 17, 2024. It is now read-only.

Latest commit

 

History

History
35 lines (23 loc) · 819 Bytes

notes.md

File metadata and controls

35 lines (23 loc) · 819 Bytes

Steps for publishing a package

Assuming you have usual git remotes setup. For example, on my machine:

kpt-samples $ git remote -v
origin  [email protected]:droot/kpt-samples.git (fetch)
origin  [email protected]:droot/kpt-samples.git (push)
upstream        [email protected]:googlecontainertools/kpt-samples.git (fetch)
upstream        [email protected]:googlecontainertools/kpt-samples.git (push)

Let say, your latest iteration on a package (say ghost) got merged.

git checkout main
git fetch upstream
git rebase upstream/main

# ensure you see your change
git log

# ok, all set to publish the package
git tag <pkg-name>/<pkg-version> main
git tag upstream <pkg-name>/<pkg-version>


# Here is how the command looked for publishing ghost v2 package

git tag ghost/v2 main
git tag upstream ghost/v2