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

ci: Fix prod workflow to checkout on deploy #246

Merged
merged 1 commit into from
Jan 15, 2024
Merged

ci: Fix prod workflow to checkout on deploy #246

merged 1 commit into from
Jan 15, 2024

Conversation

camh-
Copy link
Member

@camh- camh- commented Jan 15, 2024

Checkout the repository on the prod/deploy job so that it can actually
work. This was split off the release job which does the checkout - the
split needed to add the checkout to the new job.

Checkout the repository on the prod/deploy job so that it can actually
work. This was split off the release job which does the checkout - the
split needed to add the checkout to the new job.
@@ -30,6 +30,9 @@ jobs:
needs: release
environment: prod
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
Copy link
Member Author

Choose a reason for hiding this comment

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

we use fetch-depth: 0 everywhere (meaning checkout all history), but I think it might only be needed for release? i'll leave this here for now, but perhaps we should check all of these out (pun intended).

Copy link
Member

Choose a reason for hiding this comment

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

It is need for deploy targets as well as it creates version.json

Copy link
Member

Choose a reason for hiding this comment

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

I think could do without on ci maybe. Not sure. Will try on tractor

Copy link
Member Author

Choose a reason for hiding this comment

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

It is needed for ci, because that does a build and it uses $(VERSION) in a linker flag which is based on the tags which need history.

@camh- camh- merged commit 118e756 into main Jan 15, 2024
2 checks passed
@camh- camh- deleted the fix-deploy-prod branch January 15, 2024 23:51
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