Commit Graph

26 Commits

Author SHA1 Message Date
renovate[bot]
32eb851fc4
Update actions/checkout action to v6 2026-02-26 18:03:23 +00:00
Dan C Williams
8cec76db7f Fix invalid Docker tag for PRs with slashes in ref name
github.ref_name returns '4/merge' for PR events, which is invalid in
a Docker tag. Sanitize using the head ref (branch name) with slashes
replaced by dashes.
2026-02-26 12:02:54 -06:00
Dan C Williams
82bd9081c8 Pin base image digests and add Renovate for automated updates
Renovate will open PRs automatically when debian:bookworm-slim or
debian:sid-slim receive updates (e.g. security patches), keeping the
container current without relying solely on scheduled rebuilds.
2026-02-26 11:53:35 -06:00
Dan Williams
fc06d10a64 Use native arm64 runner; raise riscv64 timeout to 90m
CGO compilation (especially mattn/go-sqlite3) is silent and very slow
under QEMU emulation. Switch arm64/v8 to GitHub's native ubuntu-24.04-arm
runner to eliminate QEMU overhead entirely. Keep riscv64 on ubuntu-latest
(no native runner available) but raise the job timeout to 90m to give
QEMU-emulated CGO compilation enough room to finish. Also add 30m timeout
to the test job.
2026-02-25 06:41:14 -06:00
Dan Williams
f0b5e083ff Fix build hangs: add apt-get network timeout and job timeout
apt-get has no default network timeout, so an unresponsive Debian mirror
can block a build stage indefinitely. Add Acquire::http::Timeout=30 to
both update and install calls in all apt-get invocations so mirror hangs
fail fast rather than running until GitHub's 6-hour job limit.

Also add timeout-minutes: 60 to the build job so a runaway step fails
within an hour rather than silently consuming the full 6-hour default.
2026-02-25 06:29:20 -06:00
Dan Williams
e769e2bbb0 Fix riscv64 runtime: use sid-slim on riscv64, bookworm-slim elsewhere
debian:bookworm-slim has no riscv64 image. Parameterize the runtime
base via RUNTIME_IMAGE build-arg; the workflow passes sid-slim for
riscv64 and bookworm-slim for all other platforms.
2026-02-24 21:16:50 -06:00
Dan Williams
fcebd8a198 Stabilize runtime image, add PR-based version gating, drop arm/v7
Dockerfile:
- Keep build stage on debian:sid-slim (required for riscv64 Go support)
- Switch runtime stage to debian:bookworm-slim for stable, predictable
  package names — eliminates the libcbor0 class of breakage for users

update-check.py:
- Create a branch and open a PR instead of pushing directly to master
- PR body links to upstream release notes and prompts review of new
  dependencies before merge
- Remove dead deb/PACKAGE code

build.yaml:
- Drop linux/arm/v7 — upstream go-libfido2 is incompatible with 32-bit
  ARM address space as of v3.22.0; not fixable without upstream changes
- Add VERSION to pull_request trigger paths so the test job builds
  and validates every version bump PR before it can be merged

update-check.yaml:
- Pass GITHUB_TOKEN and GITHUB_REPOSITORY to script for PR creation

README.md:
- Document arm/v7 as unsupported with reason
2026-02-24 21:11:29 -06:00
Dan Williams
f9cdac79fe Fix build job condition to also run on workflow_dispatch 2026-02-24 20:32:08 -06:00
Dan Williams
5ad6fa81e3 Fix v3.22.0 build, improve stability, and set up for community maintenance
- Add libfido2-dev, libcbor-dev to build deps; libfido2-1, libcbor0 to runtime (fixes #135)
- Make bridge binaries read-only to block built-in auto-updater at runtime
- Add HEALTHCHECK to Dockerfile
- Fix long-uptime stdin stability: replace cat pipe with sleep infinity
- Clean up stale GPG agent sockets on container startup
- Update maintainer label
- Repoint build.yaml to dancwilliams Docker Hub and GHCR repos
- Use clean version/latest tags (drop -build suffix)
- Fix missing checkout in merge job
- Add workflow_dispatch and pip install to update-check.yaml
- Remove Gitee mirror workflow
- Remove legacy deb build (Dockerfile, workflow, and deb/ directory)
2026-02-24 20:15:39 -06:00
Simon Ungar Felding
4c7b9b9a8c fix version 2025-04-25 09:47:00 +02:00
Simon Ungar Felding
6b4a3e23a8 fix based on https://stackoverflow.com/questions/75521775/buildx-docker-image-claims-to-be-a-manifest-list 2025-04-25 00:20:40 +02:00
Simon Ungar Felding
e67c6cb97a fix push by digest 2025-04-24 23:36:08 +02:00
Simon Ungar Felding
84b7a76320 fix tags 2025-04-24 23:29:50 +02:00
Simon Ungar Felding
7e1b2d7104 fix build tags 2025-04-24 23:26:11 +02:00
Simon Ungar Felding
89d488b2fb fix build password 2025-04-24 23:11:47 +02:00
simonfelding
4ccd39856a
improve build readability and speed (by parallelization) (#117) 2025-04-24 23:03:50 +02:00
schklom
8ffef34853
Build when deb/* changes (#97)
The build calls to Protonmail's repo and builds from it. When that repo
changes (i.e. when deb/* changes), the image should be built again.

---------

Co-authored-by: Simon Ungar Felding <45149055+simonfelding@users.noreply.github.com>
2025-02-17 13:03:56 +01:00
Olof Nord
0541f29d98 Add riscv64 support to docker builds
* Adjust GitHub CI to also build for riscv64
* Update base Ubuntu base for build from 18.04 LTS to 20.04 LTS as to support riscv64
* Minor: Exclude idea IDE files from git
2022-11-20 23:32:58 +08:00
Rafael Blumberg
ba5d5297dc Add linux/arm/v7 to automate builds
After working around 32bits issues, this PR automate arm/v7 builds
2022-02-26 11:30:47 +08:00
Xiaonan Shen
2647f8540e
Add update check to build (#19)
* Remove armv7 temporarily

* Improve build script

* Add update check for build

* Update README

* Fix build script

* Change build version format

* Improve update check

* Bump build version to v1.5.4

* Fix build Dockerfile

* Fix build action yaml

Co-authored-by: GitHub Actions <actions@github.com>
2021-01-07 18:19:11 +08:00
Xiaonan Shen
bde4667ff4
Fix deb build (#18)
* Move dev images to ghcr

* Fix deb install
2021-01-07 13:57:03 +08:00
Xiaonan Shen
36f0935346
Add Anchore image scan (#14)
* Add image scan to deb

* Upload Anchore

* Add image scan to build

* Fix scan report uploading

* Enable acs report

* Increase severity cutoff to crtitical

* Fix scan for build

* Fix typo

* Fix build local registry
2020-11-20 00:13:57 -08:00
Xiaonan Shen
cc319ba0a7
Move deb packing under deb folder (#12) 2020-11-19 19:46:18 -08:00
Xiaonan Shen
4036e5237b
Migrate build to build-push-action@v2 (#11) 2020-11-19 19:11:35 -08:00
Xiaonan Shen
629272c730
Fix multiarch workflow 2020-06-01 07:34:23 -07:00
Xiaonan Shen
635fb1d8b1
Add github actions for multiarch 2020-06-01 07:06:41 -07:00