Skip to content

Reuse workflows#36

Merged
simlmx merged 1 commit intomainfrom
standalone-release
Mar 21, 2023
Merged

Reuse workflows#36
simlmx merged 1 commit intomainfrom
standalone-release

Conversation

@simlmx
Copy link
Contributor

@simlmx simlmx commented Mar 16, 2023

Description

Instead of copy pasting a lot of code between workflows, we reuse
"atomic" workflows. In particular we fix the workflow that bumps the
version and we add one that solely build and publishes a docker image.

This was required in the pv-site-production repo where we bump
1 version but release 2 dockers.

Also:

  • Support submodules in docker-release-only workflow
  • Rename "new_tag" -> "new_ver"
  • Bump jasonamyers/github-bumpversion-action to 1.0.5
  • Uniformize job names
  • Remove workdir option (it wasn't used anywhere)

Tests

Everything should be backward compatible. To make sure I ran all the workflows in another repo whose sole purpose is to test our organization-level workflows.

Still, if any repo were to break, we could pin the version of the workflows to @v1.0.0 (the previous version) instead of @main.

Release

After I merge this PR I'll release as v1.1.0 and also have v1 point to v1.1.0.

@simlmx simlmx force-pushed the standalone-release branch 8 times, most recently from 7c01755 to e9d0b98 Compare March 17, 2023 03:34
@simlmx simlmx changed the title WIP - Reuse workflows WIP - DO NOT MERGE - Reuse workflows Mar 17, 2023
Copy link
Contributor

@peterdudfield peterdudfield left a comment

Choose a reason for hiding this comment

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

Good work Simon. That tidies up some code nicely

@simlmx simlmx force-pushed the standalone-release branch 3 times, most recently from d660113 to a3754f0 Compare March 20, 2023 18:35
@simlmx simlmx changed the title WIP - DO NOT MERGE - Reuse workflows Reuse workflows Mar 20, 2023
Instead of copy pasting a lot of code between workflows, we reuse
"atomic" workflows. In particular we fix the workflow that bumps the
version and we add one that solely build and publishes a docker image.

Also:
* Support submodules in docker-release-only workflow
* Rename "new_tag" -> "new_ver"
* Bump jasonamyers/github-bumpversion-action to 1.0.5
* Uniformize job names
* Remove `workdir` option (it wasn't used anywhere)
@simlmx simlmx force-pushed the standalone-release branch from db4eed6 to 46ca1a7 Compare March 20, 2023 19:26
@simlmx simlmx marked this pull request as ready for review March 20, 2023 19:35
@simlmx simlmx self-assigned this Mar 20, 2023
Copy link
Member

@jacobbieker jacobbieker left a comment

Choose a reason for hiding this comment

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

LGTM! Thanks

Copy link
Contributor

@peterdudfield peterdudfield left a comment

Choose a reason for hiding this comment

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

Great stuff @simlmx - thanks for reorganisation this

@simlmx simlmx merged commit 46ca1a7 into main Mar 21, 2023
@peterdudfield peterdudfield deleted the standalone-release branch February 25, 2025 09:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

No open projects
Status: Done

Development

Successfully merging this pull request may close these issues.

3 participants