Skip to content

Commit

Permalink
Merge pull request #56 from PlaceOS/individual-file-commit
Browse files Browse the repository at this point in the history
feat: Build to retrieve individual entry point commit and forward to …
  • Loading branch information
naqvis authored Dec 18, 2023
2 parents f19916c + 425d737 commit 3119c14
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 3119c14

Please sign in to comment.