Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
19 changes: 19 additions & 0 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,17 @@ jobs:
- macos-dependencies-{{ checksum "Gemfile.lock" }}-{{ checksum ".circleci/config.yml" }}
- macos-dependencies-{{ checksum "Gemfile.lock" }}
- macos-dependencies-
- run:
name: Configure Bundler to use Socket Firewall registry
command: |
bundle config set --global mirror.https://rubygems.org https://socket-firewall-registry.corporate.intercom.io/rubygems
bundle config set --global https://socket-firewall-registry.corporate.intercom.io/rubygems "intercom-socket:${SOCKET_REGISTRY_TOKEN}"
- run:
name: Verify Socket Firewall mirror is active
command: |
MIRROR=$(bundle config mirror.https://rubygems.org | grep -o 'https://.*')
echo "Bundler mirror: $MIRROR"
echo "$MIRROR" | grep -q socket-firewall-registry || { echo "FAIL: Socket mirror not configured"; exit 1; }
- run:
name: install dependencies
command: |
Expand All @@ -35,3 +46,11 @@ jobs:
spec/
- store_test_results:
path: /tmp/test-results

workflows:
version: 2
build:
jobs:
- build:
context:
- socket-firewall