-
Notifications
You must be signed in to change notification settings - Fork 18
Expand file tree
/
Copy pathsandbox-ruby
More file actions
executable file
·32 lines (26 loc) · 897 Bytes
/
sandbox-ruby
File metadata and controls
executable file
·32 lines (26 loc) · 897 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
#!/usr/bin/env bash
set -e
DIR=$(cd `dirname $0` && pwd)
WORKING_DIR="/app/openapi"
SDK_DIR="${DIR}/../sdks/ruby"
TARGET_DIR="${DIR}/../sandbox/ruby"
ARTIFACTS_DIR="${DIR}/../sandbox/ruby/artifacts"
rm -rf "${ARTIFACTS_DIR}"
mkdir -p "${ARTIFACTS_DIR}/gems"
docker run --rm \
-e GEM_HOME="/.gem-cache" \
-e BUNDLE_PATH="/.bundle-cache" \
-v "${SDK_DIR}:${WORKING_DIR}" \
-v "${ARTIFACTS_DIR}:/artifacts" \
-v "dropbox-sign-sdk-gem-cache:/.gem-cache" \
-v "dropbox-sign-sdk-bundle-cache:/.bundle-cache" \
-w "${WORKING_DIR}" \
ruby:3.4 gem build dropbox-sign.gemspec -o /artifacts/gems/dropbox-sign.gem
docker run --rm \
-e GEM_HOME="/.gem-cache" \
-e BUNDLE_PATH="/.bundle-cache" \
-v "${ARTIFACTS_DIR}:/artifacts" \
-v "dropbox-sign-sdk-gem-cache:/.gem-cache" \
-v "dropbox-sign-sdk-bundle-cache:/.bundle-cache" \
-w "/artifacts" \
ruby:3.4 gem generate_index