A local-first personal finance app
Add support for armv6l (alpine based images) (#182)
intiplink063d468836d8
diff --git a/.github/workflows/docker-edge.yml b/.github/workflows/docker-edge.ymlindex 1fac479d1a..c48445e957 100644--- a/.github/workflows/docker-edge.yml+++ b/.github/workflows/docker-edge.yml@@ -37,6 +37,10 @@ jobs:strategy:matrix:os: [ubuntu, alpine]+ arch: [amd64, arm64, arm/v7, arm/v6]+ exclude:+ - os: ubuntu+ arch: arm/v6steps:- uses: actions/checkout@v3@@ -76,7 +80,7 @@ jobs:context: .push: ${{ github.event_name != 'pull_request' }}file: docker/edge-${{ matrix.os }}.Dockerfile- platforms: linux/amd64,linux/arm64,linux/arm/v7+ platforms: linux/${{ matrix.arch }}tags: ${{ steps.meta.outputs.tags }}build-args: |GITHUB_TOKEN=${{ secrets.GITHUB_TOKEN }}diff --git a/.github/workflows/docker-release.yml b/.github/workflows/docker-release.ymlindex e9ae30ced3..02893ce91b 100644--- a/.github/workflows/docker-release.yml+++ b/.github/workflows/docker-release.yml@@ -27,6 +27,13 @@ jobs:build:name: Build Docker imageruns-on: ubuntu-latest+ strategy:+ matrix:+ os: [ubuntu, alpine]+ arch: [amd64, arm64, arm/v7, arm/v6]+ exclude:+ - os: ubuntu+ arch: arm/v6steps:- uses: actions/checkout@v3@@ -70,20 +77,11 @@ jobs:username: ${{ github.repository_owner }}password: ${{ secrets.GITHUB_TOKEN }}- - name: Build and push standard image+ - name: Build and push imageuses: docker/build-push-action@v4with:context: .push: true- file: docker/stable-ubuntu.Dockerfile- platforms: linux/amd64,linux/arm64,linux/arm/v7+ file: docker/stable-${{ matrix.os }}.Dockerfile+ platforms: linux/${{ matrix.arch }}tags: ${{ steps.meta.outputs.tags }}-- - name: Build and push Alpine image- uses: docker/build-push-action@v4- with:- context: .- push: true- file: docker/stable-alpine.Dockerfile- platforms: linux/amd64,linux/arm64,linux/arm/v7- tags: ${{ steps.alpine-meta.outputs.tags }}diff --git a/docker/edge-alpine.Dockerfile b/docker/edge-alpine.Dockerfileindex ce66c44c3a..9a57023cf0 100644--- a/docker/edge-alpine.Dockerfile+++ b/docker/edge-alpine.Dockerfile@@ -4,6 +4,7 @@ WORKDIR /appADD .yarn ./.yarnADD yarn.lock package.json .yarnrc.yml ./RUN yarn workspaces focus --all --production+RUN if [ "$(uname -m)" = "armv7l" ]; then npm install bcrypt better-sqlite3 --build-from-source; fiRUN mkdir /publicADD "https://api.github.com/repos/actualbudget/actual/actions/artifacts?name=actual-web&per_page=100" /tmp/artifacts.jsondiff --git a/docker/stable-alpine.Dockerfile b/docker/stable-alpine.Dockerfileindex 191fb94871..fc63a40201 100644--- a/docker/stable-alpine.Dockerfile+++ b/docker/stable-alpine.Dockerfile@@ -4,6 +4,7 @@ WORKDIR /appADD .yarn ./.yarnADD yarn.lock package.json .yarnrc.yml ./RUN yarn workspaces focus --all --production+RUN if [ "$(uname -m)" = "armv7l" ]; then npm install bcrypt better-sqlite3 --build-from-source; fiFROM alpine:3.17 as prodRUN apk add --no-cache nodejs tinidiff --git a/upcoming-release-notes/182.md b/upcoming-release-notes/182.mdnew file mode 100644index 0000000000..ef50cee8e3--- /dev/null+++ b/upcoming-release-notes/182.md@@ -0,0 +1,6 @@+---+category: Features+authors: [intiplink]+---++Add support for armv6l (Alpine-based images only)\ No newline at end of file