From 8cd3fe91e0e59ba967856d866d3d5e69915701f1 Mon Sep 17 00:00:00 2001 From: DanCodes Date: Sun, 3 Nov 2024 15:05:13 +0000 Subject: [PATCH 1/2] feat(docker): build ui for `arm64` --- .github/workflows/continuous-delivery-docker.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/continuous-delivery-docker.yml b/.github/workflows/continuous-delivery-docker.yml index 40d12eab..a309044b 100644 --- a/.github/workflows/continuous-delivery-docker.yml +++ b/.github/workflows/continuous-delivery-docker.yml @@ -66,6 +66,7 @@ jobs: context: ui/ cache-from: type=gha cache-to: type=gha,mode=max + platforms: linux/amd64,linux/arm64 build: name: Build - ${{ matrix.platform.name }} - ${{ matrix.feature }} From b1d2d76da5399c2a57eb1d111ff13fbde58ffa7f Mon Sep 17 00:00:00 2001 From: DanCodes Date: Sun, 3 Nov 2024 15:23:17 +0000 Subject: [PATCH 2/2] chore: remove images correctly --- .github/workflows/cleanup-pr.yml | 5 ++++- README.md | 12 ++++++++++++ 2 files changed, 16 insertions(+), 1 deletion(-) diff --git a/.github/workflows/cleanup-pr.yml b/.github/workflows/cleanup-pr.yml index 077683d9..c8dcf8da 100644 --- a/.github/workflows/cleanup-pr.yml +++ b/.github/workflows/cleanup-pr.yml @@ -31,7 +31,10 @@ jobs: features=(full postgres sqlite) tags=(none arm64) - docker run --rm lumir/remove-dockerhub-tag --user ${{ secrets.DOCKERHUB_USERNAME }} --password ${{ secrets.DOCKERHUB_TOKEN }} danonline/autopulse:pr-${pr_number} danonline/autopulse:ui-pr-${pr_number} || true + docker run --rm lumir/remove-dockerhub-tag --user ${{ secrets.DOCKERHUB_USERNAME }} --password ${{ secrets.DOCKERHUB_TOKEN }} \ + danonline/autopulse:pr-${pr_number} \ + danonline/autopulse:pr-${pr_number}-arm64 \ + danonline/autopulse:ui-pr-${pr_number} || true for feature in "${features[@]}"; do for tag in "${tags[@]}"; do diff --git a/README.md b/README.md index 4c248a3f..e931f935 100644 --- a/README.md +++ b/README.md @@ -74,6 +74,18 @@ The easiest way to get started with autopulse is to use the provided [docker ima - `latest-sqlite` - smaller image that only supports SQLite - `ui` - self-hostable UI for autopulse +##### arm64 + +Append `-arm64` to the tag to get the arm64 image + +- `latest-arm64` - full image with support for postgres/sqlite +- `latest-arm64-postgres` - smaller image that only supports Postgres +- `latest-arm64-sqlite` - smaller image that only supports SQLite + +One exception is the `ui` tag which is a joint image for both architectures + +- `ui` + #### Compose > Here is a sample [docker-compose.yml](https://github.com/dan-online/autopulse/blob/main/example/docker-compose.yml)