Skip to content

Commit

Permalink
feat(docker): build ui for arm64 (#90)
Browse files Browse the repository at this point in the history
  • Loading branch information
dan-online authored Nov 4, 2024
1 parent d1f512d commit 619b2e5
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 1 deletion.
5 changes: 4 additions & 1 deletion .github/workflows/cleanup-pr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/continuous-delivery-docker.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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 }}
Expand Down
12 changes: 12 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 619b2e5

Please sign in to comment.