Compare commits

..

5 commits
v0.4.1 ... main

Author SHA1 Message Date
f1ed826eee chore(release): prepare for v0.4.2
Some checks failed
ci/woodpecker/push/woodpecker Pipeline failed
2023-07-22 04:55:09 +02:00
f1e5388db1 chore(release) update deps, bump version -> 0.4.2 2023-07-22 04:54:50 +02:00
ba4086bac9 fix: website version ordering
All checks were successful
ci/woodpecker/push/woodpecker Pipeline was successful
2023-07-22 04:46:57 +02:00
067dae1356 fix: container entrypoint
All checks were successful
ci/woodpecker/push/woodpecker Pipeline was successful
2023-04-18 12:09:10 +02:00
0c8d70d6e1 chore: fix npm pre-commit hook
All checks were successful
ci/woodpecker/push/woodpecker Pipeline was successful
2023-04-07 18:27:26 +02:00
6 changed files with 524 additions and 474 deletions

View file

@ -18,4 +18,5 @@ repos:
name: ui/menu lint+fmt
language: system
files: ^ui/menu/
entry: sh -c "npm run --prefix ui/menu pc"
pass_filenames: false
entry: npm run --prefix ui/menu pc

View file

@ -2,6 +2,17 @@
All notable changes to this project will be documented in this file.
## [0.4.2] - 2023-07-22
### Bug Fixes
- Container entrypoint
- Website version ordering
### Miscellaneous Tasks
- Fix npm pre-commit hook
## [0.4.1] - 2023-04-05
### Bug Fixes

962
Cargo.lock generated

File diff suppressed because it is too large Load diff

View file

@ -1,6 +1,6 @@
[package]
name = "talon"
version = "0.4.1"
version = "0.4.2"
edition = "2021"
authors = ["ThetaDev <t.testboy@gmail.com>"]
license = "MIT"

View file

@ -41,7 +41,8 @@ for arch in "${ARCHITECTURES[@]}"; do
# Finalize container
buildah umount "$container"
buildah config --entrypoint "/talon" --cmd "run -d /data" --arch "$arch" --port 3000 --author "ThetaDev" "$container"
# entrypoint syntax: see issue https://github.com/containers/buildah/issues/1768
buildah config --entrypoint '["/talon"]' --cmd "run -d /data" --arch "$arch" --port 3000 --author "ThetaDev" "$container"
buildah commit "$container" "$IMAGE:$arch-$TAG"
buildah manifest add "$REGISTRY/$IMAGE:$TAG" "$IMAGE:$arch-$TAG"

View file

@ -300,18 +300,17 @@ impl TalonApi {
subdomain: Path<String>,
) -> Result<Response<Json<Vec<Version>>>> {
let website = talon.db.get_website(&subdomain)?;
talon
let mut versions = talon
.db
.get_website_versions(&subdomain)
.map(|r| r.map(Version::from))
.collect::<Result<Vec<_>, _>>()
.map(|data| {
Response::new(Json(data)).header(
header::LAST_MODIFIED,
httpdate::fmt_http_date(website.updated_at.into()),
)
})
.map_err(Error::from)
.collect::<Result<Vec<_>, _>>()?;
versions.sort_by_key(|v| v.id);
Ok(Response::new(Json(versions)).header(
header::LAST_MODIFIED,
httpdate::fmt_http_date(website.updated_at.into()),
))
}
/// Get version