Skip to content

Commit e022f93

Browse files
committedMay 29, 2024·
Improvements to build
1 parent b712bea commit e022f93

File tree

5 files changed

+15
-15
lines changed

5 files changed

+15
-15
lines changed
 

‎.github/workflows/release.yml

+3-3
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,6 @@ jobs:
5050
- name: Push image
5151
run: |
5252
IMAGE_ID=ghcr.io/${{ github.repository_owner }}/$IMAGE_NAME
53-
5453
# This changes all uppercase characters to lowercase.
5554
IMAGE_ID=$(echo $IMAGE_ID | tr '[A-Z]' '[a-z]')
5655
# This strips the git ref prefix from the version.
@@ -61,5 +60,6 @@ jobs:
6160
[ "$VERSION" == "main" ] && VERSION=latest
6261
echo IMAGE_ID=$IMAGE_ID
6362
echo VERSION=$VERSION
64-
docker tag $IMAGE_NAME $IMAGE_ID:$VERSION
65-
docker push $IMAGE_ID:$VERSION
63+
docker buildx build --push \
64+
--tag $IMAGE_ID:$VERSION \
65+
--platform linux/amd64,linux/arm64,linux/arm/v7 .

‎.goreleaser.yaml

+3-2
Original file line numberDiff line numberDiff line change
@@ -29,9 +29,10 @@ builds:
2929
archives:
3030
- format: tar.gz
3131
# this name template makes the OS and Arch compatible with the results of uname.
32+
# Used to start with {{ .ProjectName }}
3233
name_template: >-
33-
{{ .ProjectName }}_
34-
{{- title .Os }}_
34+
rwp_
35+
{{- tolower .Os }}_
3536
{{- if eq .Arch "amd64" }}x86_64
3637
{{- else if eq .Arch "386" }}i386
3738
{{- else }}{{ .Arch }}{{ end }}

‎CHANGELOG.md

+1-10
Original file line numberDiff line numberDiff line change
@@ -6,13 +6,4 @@ All notable changes to this project will be documented in this file.
66

77
## [Unreleased]
88

9-
### Added
10-
11-
* Add the [Media Type API](https://readium.org/architecture/proposals/001-media-type.html).
12-
* Add the file and archive fetchers of the [Fetcher API](https://readium.org/architecture/proposals/002-composite-fetcher-api.html).
13-
14-
### Changed
15-
16-
* Restructuring of the repo's folders
17-
* Removal of legacy models (LCP etc.)
18-
* Updated shared models to latest specs
9+
TODO

‎Dockerfile

+3
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,9 @@ RUN --mount=type=cache,target=/root/.cache/go-build \
3131
# Produces very small images
3232
FROM gcr.io/distroless/static-debian12 AS packager
3333

34+
# Extra metadata
35+
LABEL org.opencontainers.image.source="https://github.com/readium/go-toolkit"
36+
3437
# Add Fedora's mimetypes (pretty up-to-date and expansive)
3538
# since the distroless container doesn't have any. Go uses
3639
# this file as part of its mime package, and readium/go-toolkit

‎README.md

+5
Original file line numberDiff line numberDiff line change
@@ -56,3 +56,8 @@ rwp manifest --infer-a11y=merged publication.epub | jq .metadata
5656
| `feature` | `tableOfContents` | If the publications contains a table of contents (check for the presence of a `toc` collection in RWPM) |
5757
| `feature` | `MathML` | If the publication contains any resource with MathML (check for the presence of the `contains` property where the value is `mathml` in `readingOrder` or `resources` in RWPM) |
5858
| `feature` | `synchronizedAudioText` | If the publication contains any reference to Media Overlays (TBD in RWPM) |
59+
60+
### HTTP streaming of local publications
61+
62+
`rwp serve` starts an HTTP server that serves EPUB, CBZ and other compatible formats from a given directory.
63+
A log is printed to stdout.

0 commit comments

Comments
 (0)
Please sign in to comment.