Skip to content

Conversation

@detjensrobert
Copy link
Contributor

@detjensrobert detjensrobert commented Feb 8, 2025

Implements the asset file upload portion of the deploy command.

Asset files are uploaded to <the bucket>/assets/${CHAL/SLUG}/${FILENAME} (e.g. /assets/misc/foo/things.zip)

Depends on #38 and includes its commits.

@detjensrobert detjensrobert self-assigned this Feb 8, 2025
@detjensrobert detjensrobert force-pushed the dr/deploy-upload branch 3 times, most recently from 5a7f594 to 87915dc Compare February 8, 2025 21:50
@detjensrobert detjensrobert mentioned this pull request Mar 1, 2025
3 tasks
@KekoaM KekoaM self-requested a review March 30, 2025 00:35
Copy link
Contributor

@KekoaM KekoaM left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Overall looks good, may want to provide slightly more info if docker socket connection fails.

.await
// truncate error chain with new error (returned error is way too verbose)
.map_err(|_| {
anyhow!("could not talk to Docker daemon (is DOCKER_HOST correct?)")
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Do we want to print any debug info here?
not critical, but something to think about

Copy link
Contributor Author

@detjensrobert detjensrobert Mar 30, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The error returned by bollard is not particularly helpful so I don't think there's not much other debug info we could print:

[ERROR] could not access container registry

Caused by:
    0: Error in the hyper legacy client: client error (Connect)
    1: client error (Connect)
    2: No such file or directory (os error 2)

Signed-off-by: Robert Detjens <github@detjens.dev>
This makes things cleaner than a big `async move` block

Signed-off-by: Robert Detjens <github@detjens.dev>
Signed-off-by: Robert Detjens <github@detjens.dev>
Signed-off-by: Robert Detjens <github@detjens.dev>
@detjensrobert detjensrobert merged commit 238d6e5 into main Mar 30, 2025
3 checks passed
@detjensrobert detjensrobert deleted the dr/deploy-upload branch March 30, 2025 04:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants