Skip to content

Commit

Permalink
Merge pull request #33 from dokku/josegonzalez-patch-1
Browse files Browse the repository at this point in the history
Add ability to override the deploy commit sha
  • Loading branch information
josegonzalez authored Sep 10, 2022
2 parents ffcbfa9 + 3386df7 commit a68a922
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions bin/dokku-deploy
Original file line number Diff line number Diff line change
Expand Up @@ -86,6 +86,11 @@ if [ -f "bin/ci-pre-deploy" ]; then
APP_NAME="$remote_app_name" IS_REVIEW_APP="$is_review_app" SSH_REMOTE="$ssh_remote" bin/ci-pre-deploy
fi

if [[ -f ci-commit-override ]]; then
commit_sha="$(cat ci-commit-override)"
log-info "Overriding commit sha with $commit_sha from ci-commit-override"
fi

if [ -n "$DEPLOY_DOCKER_IMAGE" ]; then
log-info "Deploying image to Dokku Host"
ssh "$ssh_remote" -- git:from-image "$remote_app_name" "$DEPLOY_DOCKER_IMAGE" "$DEPLOY_USER_NAME" "$DEPLOY_USER_EMAIL"
Expand Down

0 comments on commit a68a922

Please sign in to comment.