Skip to content

chore: Update GAR Image Tagging to MozCloud Spec#2029

Merged
taddes merged 2 commits into
masterfrom
chore/update-gar-img-tagging-STOR-451
Jan 30, 2026
Merged

chore: Update GAR Image Tagging to MozCloud Spec#2029
taddes merged 2 commits into
masterfrom
chore/update-gar-img-tagging-STOR-451

Conversation

@taddes
Copy link
Copy Markdown
Collaborator

@taddes taddes commented Jan 29, 2026

Description

Per MozCloud’s spec on Container Images and Continuous Deployment, we want to align our image tagging in GAR and GHCR to match the org-wide standard to include the release date.

Tags must consist of:

  • A short Git commit SHA (10 characters)

  • A UTC timestamp in the format YYYYMMDDTHHMMSS

<short-sha>-<YYYYMMDDTHHMMSS>

Testing

Output from workflow (will verify in branch)

Issue(s)

Closes STOR-451.

@taddes taddes self-assigned this Jan 29, 2026
@taddes taddes requested a review from grahamalama January 29, 2026 22:34
@taddes
Copy link
Copy Markdown
Collaborator Author

taddes commented Jan 29, 2026

Thought I'd tag you on this one @grahamalama in case I was missing something with the mozilla-it maintained action. I just created a job to gen the timestamp and then pass it in the image_tag_metadata, which I gleaned from the deploy actions docs: https://github.com/mozilla-it/deploy-actions/blob/main/.github/workflows/docs/build-and-push.md. If there's another way services has done it, lmk.

It does work successfully, but given the way the workflow goes, it adds two -, see here. Any way to avoid that or is that fine? I'm just aligning with the MozCloud spec as we move away from DockerHub and to the org standard. Thanks!

@taddes taddes force-pushed the chore/update-gar-img-tagging-STOR-451 branch 2 times, most recently from 044cc96 to 74e50fa Compare January 29, 2026 23:01
@taddes taddes requested review from chenba and pjenvey January 29, 2026 23:03
chenba
chenba previously approved these changes Jan 30, 2026
Comment thread .github/workflows/mozcloud-publish.yaml Outdated
- master
tags:
- '**'
- "**"
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Doesn't this make it less consistent with the rest of file/PR? I see 'master' and 'refs/tags/' for example.

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

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

For some reason my auto-formatter in VSCode keeps demanding that, I'll see if I can disable the prefs for the double quotes.

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Ah, no worries. Just thought the change was a bit odd; makes more sense now knowing it was an auto-formatter.

pjenvey
pjenvey previously approved these changes Jan 30, 2026
Copy link
Copy Markdown
Contributor

@grahamalama grahamalama left a comment

Choose a reason for hiding this comment

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

It does work successfully, but given the way the workflow goes, it adds two -, see here. Any way to avoid that or is that fine?

Oof, that was certainly an oversight on my part when writing that standard 😅. Probably should have kept the double hyphen consistent between both versions. For now, the double hyphen is okay as long as you match that pattern accordingly in your tenant.

If I understand your intent with this PR, are you going to set image_regex: <sha 10>--<timestamp> for each Argo application and then toggle auto sync on or off for different environments? If so, you'll want to make sure to update all of the image_regex values here?

Comment thread .github/workflows/mozcloud-publish.yaml Outdated
id-token: write
packages: write
uses: mozilla-it/deploy-actions/.github/workflows/build-and-push.yml@1b87069d293273436a84dff04954a8950d3ff9ca # v6.1.0
uses: mozilla-it/deploy-actions/.github/workflows/build-and-push.yml@v6.2.2
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.

I would still recommend pinning at the full SHAand adding the semver tag at the end. Dependabot knows how to update the comments along with the SHA. Though we're a "trusted creator", it's still something Zizmor will flag (if you're using that).

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

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

Thanks so much for chiming in @grahamalama ! I'll go ahead and make those changes too and get a PR for you folks in global-platform-admin for those image_regex values. Appreciate you pointing me right to them.

@taddes taddes dismissed stale reviews from pjenvey and chenba via 94e7f83 January 30, 2026 20:25
@taddes taddes force-pushed the chore/update-gar-img-tagging-STOR-451 branch from 1bc89e1 to 94e7f83 Compare January 30, 2026 20:25
@taddes taddes requested review from chenba and pjenvey January 30, 2026 20:25
@taddes
Copy link
Copy Markdown
Collaborator Author

taddes commented Jan 30, 2026

Sry @pjenvey @chenba , rebase and changes from @grahamalama made review approval stale. Need approval again.

Copy link
Copy Markdown
Member

@pjenvey pjenvey left a comment

Choose a reason for hiding this comment

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

want to log an issue for the image_regex change?

@pjenvey
Copy link
Copy Markdown
Member

pjenvey commented Jan 30, 2026

want to log an issue for the image_regex change?

eh it could just be part of this STOR-451 though

@taddes
Copy link
Copy Markdown
Collaborator Author

taddes commented Jan 30, 2026

want to log an issue for the image_regex change?

eh it could just be part of this STOR-451 though

Yes good call. I've got it in STOR-434 already as the general update, but will note @grahamalama 's comment there too 👍

@taddes taddes merged commit d2fda79 into master Jan 30, 2026
33 checks passed
@taddes taddes deleted the chore/update-gar-img-tagging-STOR-451 branch January 30, 2026 22:27
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.

4 participants