Skip to content

feat(ci): automatically update image version in wbaas-deploy on tagged release#614

Merged
m90 merged 1 commit into
mainfrom
fr/auto-update
Jun 26, 2023
Merged

feat(ci): automatically update image version in wbaas-deploy on tagged release#614
m90 merged 1 commit into
mainfrom
fr/auto-update

Conversation

@m90

@m90 m90 commented Jun 21, 2023

Copy link
Copy Markdown
Contributor

Ticket https://phabricator.wikimedia.org/T340039

This works slightly differently than in UI as we still need to push a tag before a release happens.

labels: ${{ steps.docker_meta.outputs.labels }}

-
name: Check whether wbaas-deploy should be updated

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

An alternative to doing this check and then skipping the following steps would be to stop releasing latest when pushing to main which I think we don't ever use anywhere anyways?

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

yeah, we don't use it anyway either AFAICT; I believe we should therefore feel free to remove it.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

One detail I missed yesterday: this would also mean we stop building the image on Pull Requests for the purpose of "testing whether this still builds". I could live with that, but wanted to double check.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

ah, yeah. I believe we definitely want to check this builds on each PR (otherwise there is a high chance of us merging non-building code).

One alternative if you wanted to refactor more heavily would be to:

@m90
m90 force-pushed the fr/auto-update branch 3 times, most recently from df6f8a6 to dedc75a Compare June 21, 2023 14:25
@m90
m90 force-pushed the fr/auto-update branch from 9025c34 to 996062f Compare June 21, 2023 14:28
@m90

m90 commented Jun 21, 2023

Copy link
Copy Markdown
Contributor Author

This needs a powerful person that can set WBAAS_DEPLOY_TOKEN in the repository secrets before merging.

@m90

m90 commented Jun 22, 2023

Copy link
Copy Markdown
Contributor Author

A token is now added to this repo.

@tarrow tarrow left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Would be happy to see merged as is or to review again if you prefer to think about some alterations after reading the one comment thread

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