Skip to content
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

chore(ci): update release process according to new Quarkiverse process #977

Open
wants to merge 4 commits into
base: main
Choose a base branch
from

Conversation

metacosm
Copy link
Member

Signed-off-by: Chris Laprun claprun@redhat.com

Signed-off-by: Chris Laprun <claprun@redhat.com>
@metacosm metacosm requested a review from a team as a code owner October 16, 2024 15:03
@metacosm metacosm self-assigned this Oct 16, 2024
Copy link
Member

@gastaldi gastaldi left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, added a minor suggestion, which you can ignore if it doesn't make sense

.github/workflows/release-perform.yml Show resolved Hide resolved
@gastaldi
Copy link
Member

Don't forget to delete https://github.com/quarkiverse/quarkus-operator-sdk/blob/main/.github/workflows/release.yml in this PR too

Signed-off-by: Chris Laprun <claprun@redhat.com>
Signed-off-by: Chris Laprun <claprun@redhat.com>
fi

git checkout -b release
./mvnw -B release:prepare -Prelease -Darguments="-DperformRelease -Dno-samples -DskipTests" -DreleaseVersion=${{steps.metadata.outputs.current-version}} -DdevelopmentVersion=${{steps.metadata.outputs.next-version}}
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I see you're passing a -Dno-samples here, which is not done in the reusable workflow. Can you define it in a Maven profile?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It is already defined in a no-samples profile but for some reason that I don't recall I activated the profile via the property instead of using it directly… 🤔

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Though that raises an interesting question that I hadn't paid attention to, indeed. How can I not release my samples with this new process?

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hmm, though that means I need another profile to deactivate based on the property…

Copy link
Member

@gastaldi gastaldi Oct 16, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

According to https://maven.apache.org/guides/introduction/introduction-to-profiles.html#multiple-conditions, you can specify more than one activation. Plus you can also specify !true to match when the system property "no-docs" is not defined, or is defined with a value which is not "true" in the no-* properties you already have:

    <profile>
      <id>no-docs</id>
      <activation>
        <property>
          <name>no-docs</name>
          <value>!true</value>     
        </property>
        <property>
          <name>performRelease</name>
          <value>!true</value>
        </property>
      </activation>
      <modules>
        <module>docs</module>
      </modules>
    </profile>

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

IDEA doesn't agree that you can specify multiple properties. Also, the semantics is supposed to be AND, which isn't what I would like (OR semantics).

Signed-off-by: Chris Laprun <claprun@redhat.com>
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.

2 participants