[build] Fix HOME environment in deploy-gitpod action #21252
Merged
+4
−0
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Problem
previewctl install-contextfails withexit status 1when generating SSH keys because the HOME directory doesn't exist.Root Cause
Commit 80317ca converted
deploy-gitpodfrom a Docker-based action to a composite action. The old Docker action explicitly setexport HOME=/home/gitpod, but the composite action inherits GitHub Actions' defaultHOME=/github/home, which doesn't exist in the container.Validation
Tested locally with the dev-environment container:
Solution
Restore
export HOME=/home/gitpodin the deploy-gitpod action to match the original Docker-based action behavior.