Skip to content

Commit

Permalink
v1.3.10 + fix java release + add build scripts for releasing
Browse files Browse the repository at this point in the history
  • Loading branch information
haffla committed May 30, 2023
1 parent dda83b1 commit b0ed945
Show file tree
Hide file tree
Showing 4 changed files with 19 additions and 11 deletions.
18 changes: 9 additions & 9 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
ARG RUBY_VERSION=latest
FROM ruby:${RUBY_VERSION}
ARG RUBY_VERSION
ARG RUBY_PLATFORM
FROM ${RUBY_PLATFORM}:${RUBY_VERSION}

WORKDIR /usr/src/app

RUN mkdir -p lib/jsonb_accessor
COPY lib/jsonb_accessor/version.rb ./lib/jsonb_accessor/
COPY *.gemspec Gemfile* ./
RUN apt-get update && apt-get install -y --no-install-recommends git

RUN bundle install
WORKDIR /usr/src/app

COPY . .
COPY lib/jsonb_accessor/version.rb ./lib/jsonb_accessor/version.rb
COPY jsonb_accessor.gemspec Gemfile ./
# RUN bundle install
COPY . ./
7 changes: 7 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
build-gem:
@docker build --build-arg RUBY_PLATFORM=ruby --build-arg RUBY_VERSION=3.2.2 -t jsonb_accessor-ruby:3.2.2 .
@docker run --rm -v $(PWD):/usr/src/app -w /usr/src/app jsonb_accessor-ruby:3.2.2 gem build

build-gem-java:
@docker build --build-arg RUBY_PLATFORM=jruby --build-arg RUBY_VERSION=9.4.2-jdk -t jsonb_accessor-jruby:9.4.2-jdk .
@docker run --rm -v $(PWD):/usr/src/app -w /usr/src/app jsonb_accessor-jruby:9.4.2-jdk gem build --platform java
3 changes: 2 additions & 1 deletion docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,8 @@ services:
- DATABASE_HOST=postgres
build:
args:
- RUBY_VERSION=${RUBY_VERSION:-3.2.1}
- RUBY_VERSION=${RUBY_VERSION:-3.2.2}
- RUBY_PLATFORM=${RUBY_PLATFORM:-ruby}
context: .
volumes:
- '.:/usr/src/app'
Expand Down
2 changes: 1 addition & 1 deletion lib/jsonb_accessor/version.rb
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# frozen_string_literal: true

module JsonbAccessor
VERSION = "1.3.8"
VERSION = "1.3.10"
end

0 comments on commit b0ed945

Please sign in to comment.