Skip to content

Commit

Permalink
build
Browse files Browse the repository at this point in the history
  • Loading branch information
omohokcoj committed Feb 18, 2025
1 parent 1b52a99 commit aa926ed
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 6 deletions.
2 changes: 2 additions & 0 deletions .github/workflows/buildkitd.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
[worker.oci]
max-parallelism = 1
11 changes: 5 additions & 6 deletions .github/workflows/docker.yml
Original file line number Diff line number Diff line change
@@ -1,9 +1,6 @@
name: Build Docker Images

on:
push:
tags:
- "*.*.*"
on: [push]

jobs:
build:
Expand All @@ -23,15 +20,17 @@ jobs:
images: |
docuseal/docuseal
tags: |
type=semver,pattern={{version}}
1.9.2
- name: Set up QEMU
uses: docker/setup-qemu-action@v3

- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3
with:
config: .github/buildkitd.toml

- name: Create .version file
run: echo ${{ github.ref_name }} > .version
run: echo "1.9.2" > .version

- name: Login to Docker Hub
uses: docker/login-action@v3
Expand Down
2 changes: 2 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ FROM ruby:3.4.1-alpine as webpack

ENV RAILS_ENV=production
ENV NODE_ENV=production
ENV BUNDLE_JOBS=1

WORKDIR /app

Expand All @@ -35,6 +36,7 @@ RUN echo "gem 'shakapacker'" > Gemfile && ./bin/shakapacker
FROM ruby:3.4.1-alpine as app

ENV RAILS_ENV=production
ENV BUNDLE_JOBS=1
ENV BUNDLE_WITHOUT="development:test"
ENV LD_PRELOAD=/lib/libgcompat.so.0
ENV OPENSSL_CONF=/app/openssl_legacy.cnf
Expand Down

0 comments on commit aa926ed

Please sign in to comment.