From e5f2625df212031d435f0638821a6ca80609e5cd Mon Sep 17 00:00:00 2001 From: Jose Diaz-Gonzalez Date: Thu, 23 Apr 2026 03:16:18 -0400 Subject: [PATCH] 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. --- bin/ci-pre-deploy | 3 +++ 1 file changed, 3 insertions(+) diff --git a/bin/ci-pre-deploy b/bin/ci-pre-deploy index c6eff4a..bf7c01b 100644 --- a/bin/ci-pre-deploy +++ b/bin/ci-pre-deploy @@ -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