-
Notifications
You must be signed in to change notification settings - Fork 130
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
fix(ci): Correctly match and tag containers #252
Conversation
Push event payload (testing git tag vM.m):
Run act local testing (on fork, hence GHCR repository):
|
27b40c0
to
17656cd
Compare
Release tags have been `vM.m` which wasn't being matched by the GHA `docker/metadata-action@v3` due to the `v` prefix. `v` prefix is common in many projects though. ``` Warning: v1.2 is not a valid semver. More info: https://semver.org/ ``` See: https://github.com/docker/metadata-action#typesemver I don't think a `vM` tag is useful so removed it. This GHA only runs on tag or master branch push so generating a PR tag is unnecessary. Removed. GHA log for `v1.2` tag push: https://github.com/salesforce/sloop/actions/runs/3651605823/jobs/6169012887
17656cd
to
f38697c
Compare
@@ -28,10 +28,7 @@ jobs: | |||
tags: | | |||
type=raw,value=latest,enable=${{ github.ref == format('refs/heads/{0}', 'master') }} | |||
type=ref,event=branch | |||
type=ref,event=pr | |||
type=semver,pattern={{version}} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can we please fix annotation checks too?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Sorry which ones?
Unchanged files with check annotations
These? If so I think separate PR using go 1.16+ stdlib..
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I see some files under the heading "Unchanged files with check annotations".
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Righto, yes those are unrelated to this PR and started showing as warnings (not CI failure) when we added go vet
checker.
See:
sloop/.github/workflows/test.yml
Lines 35 to 38 in 1ac931c
- name: Run go vet | |
# TODO: Enforce when possible. | |
run: | | |
go vet ./... || true |
We chose not to enforce a clean go vet
until someone got around to fixing the issues raised.
It would be simplest to fix the warnings but I was thinking it might be possible to drop the Afero dependency for the standard library embed package.
Maybe I do this as a separate PR when have time (probably soon 😅)?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Sounds good. Lets fix them in a separate PR.
Release tags have been
vM.m
which wasn't being matched by the GHAdocker/metadata-action@v3
due to thev
prefix.v
prefix is common in many projects though.See: https://github.com/docker/metadata-action#typesemver
I don't think a
vM
tag is useful so removed it.This GHA only runs on tag or master branch push so generating a PR tag is unnecessary. Removed.
GHA log for
v1.2
tag push: https://github.com/salesforce/sloop/actions/runs/3651605823/jobs/6169012887Closes #164
Part of #245 "On git tag creation"