We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Environment variable SOURCE_COMMIT should contain the commit hash for the git-based resources: https://coolify.io/docs/knowledge-base/environment-variables#predefined-variables
However, for the Preview Deployments it's always "HEAD". Tried with Nixpacks & Docker Compose
echo "SOURCE_COMMIT=$SOURCE_COMMIT"
Alternatively, just execute printenv in "Command" menu for any container with PR branch deployed
printenv
You'll see:
SOURCE_COMMIT=HEAD
Also, the deployment logs for Docker Compose deployments (Preview Deployments only) would be like:
[COMMAND] docker exec XXXXXX bash -c 'SOURCE_COMMIT=HEAD docker compose --project-directory /artifacts/XXXXXX -f /artifacts/XXXXXX/docker-compose.yaml build'
v4.0.0-beta.271
The text was updated successfully, but these errors were encountered:
We are blocked on this too! @ton77v is this on SaaS Coolify? Or self-hosted?
Sorry, something went wrong.
Yeah this issue breaks the PR deployments totally
I've faced this at self-hosted going to get into the cloud after it will be fixed
Any luck with this one? @andrasbacsai
This will be fixed in the upcoming version.
andrasbacsai
Successfully merging a pull request may close this issue.
Description
Environment variable SOURCE_COMMIT should contain the commit hash for the git-based resources: https://coolify.io/docs/knowledge-base/environment-variables#predefined-variables
However, for the Preview Deployments it's always "HEAD". Tried with Nixpacks & Docker Compose
Minimal Reproduction (if possible, example repository)
echo "SOURCE_COMMIT=$SOURCE_COMMIT"
for example as post-build commandAlternatively, just execute
printenv
in "Command" menu for any container with PR branch deployedYou'll see:
Exception or Error
Also, the deployment logs for Docker Compose deployments (Preview Deployments only) would be like:
Version
v4.0.0-beta.271
The text was updated successfully, but these errors were encountered: