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

Github Actions isn't pushing correct docker image tags #253

Closed
thomas-anderson-bsl opened this issue Feb 28, 2022 · 4 comments
Closed

Github Actions isn't pushing correct docker image tags #253

thomas-anderson-bsl opened this issue Feb 28, 2022 · 4 comments

Comments

@thomas-anderson-bsl
Copy link
Contributor

Our Github Actions aren't pushing the correct docker image tag. See https://github.com/brightsparklabs/appcli/runs/5280840366?check_suite_focus=true

It is pushing docker push brightsparklabs/appcli:1d1642d without the git tag information.

The tag is being generated by git describe --always --dirty in Makefile: https://github.com/brightsparklabs/appcli/blob/develop/Makefile#L14

I think this is related to some weird git pull as part of the 'checkout' action. May need to set fetch-depth: 0. See https://github.com/actions/checkout#fetch-all-history-for-all-tags-and-branches
actions/checkout#290
actions/checkout#250

@thomas-anderson-bsl
Copy link
Contributor Author

We should be able to fix and test this somewhat locally by:

and iterate as required.

@thomas-anderson-bsl
Copy link
Contributor Author

Pretty sure this issue is related to actions/checkout#240

@thomas-anderson-bsl
Copy link
Contributor Author

Testing with nektos/act isn't proving to be fruitful, as I don't think it's actually pulling the repo (it's only acting on the local git)

@thomas-anderson-bsl
Copy link
Contributor Author

thomas-anderson-bsl commented Mar 9, 2022

Fixed with 32e37dd

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

No branches or pull requests

1 participant