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

Use full checkout for docker image building #72

Merged
merged 1 commit into from
Jan 15, 2025

Conversation

a-musing-moose
Copy link
Contributor

We build the docker tag in part from the number of commits on the current branch. This provides a number value that can only increaase over time. A useful automated "release" or "version" number. However, it relies on git rev-list which in turn requires all the commits to be available in order to get an accurate count. The default for github actions is a shallow fetch. So here we change it to fetch the whole shebang whem building the Docker image.

@a-musing-moose a-musing-moose force-pushed the full-checkout-for-builds branch from f396946 to 0a976c5 Compare November 24, 2024 22:24
@a-musing-moose a-musing-moose force-pushed the full-checkout-for-builds branch from 0a976c5 to 752d1b1 Compare December 9, 2024 05:05
@a-musing-moose a-musing-moose requested review from zahraaalizadeh and Copilot and removed request for zahraaalizadeh December 18, 2024 03:13

Choose a reason for hiding this comment

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

Copilot reviewed 1 out of 1 changed files in this pull request and generated no comments.

We build the docker tag in part from the number of commits on the
current branch. This provides a number value that can only increaase
over time. A useful automated "release" or "version" number. However, it
relies on `git rev-list` which in turn requires _all_ the commits to be
available in order to get an accurate count. The default for github
actions is a shallow fetch. So here we change it to fetch the whole
shebang whem building the Docker image.
@a-musing-moose a-musing-moose force-pushed the full-checkout-for-builds branch from 752d1b1 to 77feebf Compare January 15, 2025 04:54
Copy link
Contributor

@jadedarko jadedarko left a comment

Choose a reason for hiding this comment

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

Good catch, thank you!

@a-musing-moose a-musing-moose merged commit 96aaff8 into main Jan 15, 2025
3 checks passed
@a-musing-moose a-musing-moose deleted the full-checkout-for-builds branch January 15, 2025 21:00
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