Skip to content

Commit

Permalink
feat: Build to retrieve individual entry point commit and forward to …
Browse files Browse the repository at this point in the history
…cloud build service
  • Loading branch information
naqvis committed Dec 18, 2023
1 parent f19916c commit 425d737
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/placeos-build/cli/build.cr
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,8 @@ module PlaceOS::Build
password: password,
)
end
PlaceOS::Build.call_cloud_build_service(repository_uri, branch, entrypoint, ref, username: username, password: password)
commit = repository_store.file_commits?(entrypoint, repository_uri, 1, branch, username, password).try &.first.commit || ref
PlaceOS::Build.call_cloud_build_service(repository_uri, branch, entrypoint, commit, username: username, password: password)
rescue e
Log.warn(exception: e) { "failed to compile #{entrypoint}" }
end
Expand Down

0 comments on commit 425d737

Please sign in to comment.