Skip to content

Commit bba608d

Browse files
authored
ci: lock namely protoc-all docker image version (#40)
1 parent 2b24153 commit bba608d

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

Rakefile

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,8 @@ CLEAN.include('spec/pb-ts/*.ts')
1313
CLEAN.include('spec/js-client/main.js')
1414
CLEAN.include('spec/node-client/dist/*')
1515

16+
NAMELY_DOCKER_IMAGE = 'namely/protoc-all:1.31_2'
17+
1618
module RakeHelpers
1719
def self.compile_protos_js_cmd(mode, output_dir)
1820
[
@@ -37,7 +39,7 @@ task :compile_protos_ruby do
3739
sh [
3840
'docker run',
3941
"-v \"#{File.expand_path('spec', __dir__)}:/defs\"",
40-
'namely/protoc-all',
42+
NAMELY_DOCKER_IMAGE,
4143
'-d /defs/pb-src',
4244
'-o /defs/pb-ruby',
4345
'-l ruby',
@@ -52,7 +54,7 @@ task :compile_protos_ts do
5254
'docker run',
5355
"-v \"#{defs_dir}:/defs\"",
5456
'--entrypoint protoc',
55-
'namely/protoc-all',
57+
NAMELY_DOCKER_IMAGE,
5658
'--plugin=protoc-gen-ts=/usr/bin/protoc-gen-ts',
5759
'--js_out=import_style=commonjs,binary:/defs/pb-ts',
5860
'--ts_out=service=grpc-web:/defs/pb-ts',

0 commit comments

Comments
 (0)