mirror of
https://github.com/dokku/buildpack-nginx.git
synced 2026-04-24 01:27:37 +00:00
feat: set buildpack ref on main branch deploys
The ci-pre-deploy script already sets the buildpack ref for review apps via a .buildpacks file. For main/master branch deploys, use dokku buildpacks:set to pin the buildpack to the current branch ref.
This commit is contained in:
@ -25,4 +25,7 @@ if [ "$IS_REVIEW_APP" = "true" ]; then
|
||||
git commit -qm "feat: specify $GITHUB_SHA as buildpack"
|
||||
|
||||
git rev-parse HEAD >ci-commit-override
|
||||
else
|
||||
echo "-----> Setting the buildpack to the current ref $GITHUB_REF_NAME"
|
||||
ssh "$SSH_REMOTE" -- buildpacks:set "$APP_NAME" "https://github.com/${GITHUB_REPOSITORY}.git#${GITHUB_REF_NAME}"
|
||||
fi
|
||||
|
||||
Reference in New Issue
Block a user