Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(docker): build ui for arm64 #90

Merged
merged 2 commits into from
Nov 4, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading