Skip to content

Commit 85cc308

Browse files
committed
build
1 parent 1b52a99 commit 85cc308

File tree

3 files changed

+9
-6
lines changed

3 files changed

+9
-6
lines changed

.github/buildkitd.toml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
[worker.oci]
2+
max-parallelism = 1

.github/workflows/docker.yml

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,6 @@
11
name: Build Docker Images
22

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

85
jobs:
96
build:
@@ -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

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ 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

@@ -35,6 +36,7 @@ RUN echo "gem 'shakapacker'" > Gemfile && ./bin/shakapacker
3536
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)