Skip to content

feat: Create a release script for releasing java-operator-plugins #36

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Aug 30, 2021

Conversation

jmrodri
Copy link
Member

@jmrodri jmrodri commented Aug 28, 2021

No description provided.

@jmrodri
Copy link
Member Author

jmrodri commented Aug 28, 2021

Invalid version specified

$ ./release.sh foo
malformed version: "foo"

Not in a release branch

$ ./release.sh v0.0.1
branch: "infra-release" is not a release branch, please create a release branch in the form of vX.Y.x

Uncommitted changes

$ ./release.sh v0.0.1
directory has uncommitted files

Full release

$ ./release.sh v0.0.1
Running tests
Checking for license header...
ok      github.com/operator-framework/java-operator-plugins/pkg/quarkus/v1alpha 0.011s  coverage: 75.0% of statements
?       github.com/operator-framework/java-operator-plugins/pkg/quarkus/v1alpha/scaffolds       [no test files]
ok      github.com/operator-framework/java-operator-plugins/pkg/quarkus/v1alpha/scaffolds/internal/templates    0.006s  coverage: 29.4% of statements
?       github.com/operator-framework/java-operator-plugins/pkg/quarkus/v1alpha/scaffolds/internal/templates/controller [no test files]
?       github.com/operator-framework/java-operator-plugins/pkg/quarkus/v1alpha/scaffolds/internal/templates/model      [no test files]
ok      github.com/operator-framework/java-operator-plugins/pkg/quarkus/v1alpha/scaffolds/internal/templates/util       0.007s  coverage: 100.0% of statements
ok      github.com/operator-framework/java-operator-plugins/pkg/quarkus/v1alpha/util    0.007s  coverage: 100.0% of statements
Creating a new tag for java-operator-plugins version v0.0.1
warning: refname 'v0.0.1' is ambiguous.
object dc02856add27bf54818dfc1bfc0b4efe631e6a10
type commit
tag v0.0.1
tagger jesus m. rodriguez <[email protected]> 1630165665 -0400

java-operator-plugins v0.0.1
gpg: Signature made Sat 28 Aug 2021 11:47:45 AM EDT
gpg:                using DSA key BF6F6F18846753754CBB1DDFBC9679ED89ED8983
gpg: Good signature from "Jesus Miguel Rodriguez (jesusr) <[email protected]>" [ultimate]
gpg:                 aka "jesus rodriguez (jmrodri) <[email protected]>" [ultimate]

Done forget to:

git push upstream <release-branch>
git push upstream v0.0.1

Also update the release notes in github for this tag.

@jmrodri
Copy link
Member Author

jmrodri commented Aug 28, 2021

Fixes #30

@metacosm
Copy link
Collaborator

Looks good to me, though, perhaps it would make sense to investigate using GitHub actions for this at some point?

@jmrodri
Copy link
Member Author

jmrodri commented Aug 28, 2021

@metacosm fixed the typo (that's what I get for copying code :) and I am not opposed to the github action. The one we have on operator-sdk is a bit more complicated so I didn't want to use that.

@laxmikantbpandhare laxmikantbpandhare linked an issue Aug 30, 2021 that may be closed by this pull request
@laxmikantbpandhare laxmikantbpandhare merged commit c320e78 into operator-framework:main Aug 30, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Release?
4 participants