Skip to content

Commit 1d3369d

Browse files
committed
build
1 parent 1b52a99 commit 1d3369d

File tree

3 files changed

+13
-10
lines changed

3 files changed

+13
-10
lines changed

.github/buildkitd.toml

+2
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
[worker.oci]
2+
max-parallelism = 1

.github/workflows/docker.yml

+6-7
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,10 @@
11
name: Build Docker Images
22

3-
on:
4-
push:
5-
tags:
6-
- "*.*.*"
3+
on: [push]
74

85
jobs:
96
build:
10-
runs-on: ubuntu-latest
7+
runs-on: ubuntu-24.04-arm
118

129
steps:
1310
- name: Checkout code
@@ -23,15 +20,17 @@ jobs:
2320
images: |
2421
docuseal/docuseal
2522
tags: |
26-
type=semver,pattern={{version}}
23+
1.9.2
2724
- name: Set up QEMU
2825
uses: docker/setup-qemu-action@v3
2926

3027
- name: Set up Docker Buildx
3128
uses: docker/setup-buildx-action@v3
29+
with:
30+
config: .github/buildkitd.toml
3231

3332
- name: Create .version file
34-
run: echo ${{ github.ref_name }} > .version
33+
run: echo "1.9.2" > .version
3534

3635
- name: Login to Docker Hub
3736
uses: docker/login-action@v3

Dockerfile

+5-3
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,16 @@
1-
FROM ruby:3.4.1-alpine as fonts
1+
FROM ruby:3.4.1-alpine AS fonts
22

33
WORKDIR /fonts
44

55
RUN apk --no-cache add fontforge wget && wget https://github.com/satbyy/go-noto-universal/releases/download/v7.0/GoNotoKurrent-Regular.ttf && wget https://github.com/satbyy/go-noto-universal/releases/download/v7.0/GoNotoKurrent-Bold.ttf && wget https://github.com/impallari/DancingScript/raw/master/fonts/DancingScript-Regular.otf && wget https://cdn.jsdelivr.net/gh/notofonts/notofonts.github.io/fonts/NotoSansSymbols2/hinted/ttf/NotoSansSymbols2-Regular.ttf && wget https://github.com/Maxattax97/gnu-freefont/raw/master/ttf/FreeSans.ttf && wget https://github.com/impallari/DancingScript/raw/master/OFL.txt
66

77
RUN fontforge -lang=py -c 'font1 = fontforge.open("FreeSans.ttf"); font2 = fontforge.open("NotoSansSymbols2-Regular.ttf"); font1.mergeFonts(font2); font1.generate("FreeSans.ttf")'
88

9-
FROM ruby:3.4.1-alpine as webpack
9+
FROM ruby:3.4.1-alpine AS webpack
1010

1111
ENV RAILS_ENV=production
1212
ENV NODE_ENV=production
13+
ENV BUNDLE_JOBS=1
1314

1415
WORKDIR /app
1516

@@ -32,9 +33,10 @@ COPY ./app/views ./app/views
3233

3334
RUN echo "gem 'shakapacker'" > Gemfile && ./bin/shakapacker
3435

35-
FROM ruby:3.4.1-alpine as app
36+
FROM ruby:3.4.1-alpine AS app
3637

3738
ENV RAILS_ENV=production
39+
ENV BUNDLE_JOBS=1
3840
ENV BUNDLE_WITHOUT="development:test"
3941
ENV LD_PRELOAD=/lib/libgcompat.so.0
4042
ENV OPENSSL_CONF=/app/openssl_legacy.cnf

0 commit comments

Comments
 (0)