-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
12 changed files
with
248 additions
and
92 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -58,13 +58,22 @@ jobs: | |
- name: Checkout | ||
uses: actions/checkout@v4 | ||
|
||
- name: Install Git | ||
run: | | ||
sudo apt-get update | ||
sudo apt-get install git -y | ||
- name: Set up SSH agent (for service-registry) | ||
uses: webfactory/[email protected] | ||
with: | ||
ssh-private-key: ${{ secrets.SENTRY_INTERNAL_GH_SSH_PRIVATE_KEY }} | ||
|
||
- name: Setup node | ||
uses: actions/setup-node@v4 | ||
with: | ||
node-version: '18' | ||
|
||
- name: yarn install | ||
run: yarn install --immutable | ||
run: yarn install --immutable && yarn up "service-registry@git+ssh://[email protected]:getsentry/service-registry#main" | ||
|
||
- name: tsc | ||
run: yarn build | ||
|
@@ -85,8 +94,13 @@ jobs: | |
steps: | ||
- uses: actions/checkout@v3 | ||
|
||
- name: Set up SSH agent (for service-registry) | ||
uses: webfactory/[email protected] | ||
with: | ||
ssh-private-key: ${{ secrets.SENTRY_INTERNAL_GH_SSH_PRIVATE_KEY }} | ||
|
||
- name: Builds docker image | ||
run: docker build -t ci-tooling . | ||
run: DOCKER_BUILDKIT=1 docker build --ssh default -t ci-tooling . | ||
|
||
build-deploy: | ||
name: build and deploy | ||
|
@@ -110,14 +124,22 @@ jobs: | |
with: | ||
# for Sentry releases | ||
fetch-depth: 0 | ||
- name: Install Git | ||
run: | | ||
sudo apt-get update | ||
sudo apt-get install git -y | ||
- name: Set up SSH agent (for service-registry) | ||
uses: webfactory/[email protected] | ||
with: | ||
ssh-private-key: ${{ secrets.SENTRY_INTERNAL_GH_SSH_PRIVATE_KEY }} | ||
|
||
- name: Setup node | ||
uses: actions/setup-node@v4 | ||
with: | ||
node-version: '18' | ||
|
||
- name: yarn install | ||
run: yarn install --immutable | ||
run: yarn install --immutable && yarn up "service-registry@git+ssh://[email protected]:getsentry/service-registry#main" | ||
|
||
- name: tsc | ||
run: yarn build | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -33,6 +33,14 @@ jobs: | |
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v4 | ||
- name: Install Git | ||
run: | | ||
sudo apt-get update | ||
sudo apt-get install git -y | ||
- name: Set up SSH agent (for service-registry) | ||
uses: webfactory/[email protected] | ||
with: | ||
ssh-private-key: ${{ secrets.SENTRY_INTERNAL_GH_SSH_PRIVATE_KEY }} | ||
|
||
- name: Setup node | ||
uses: actions/setup-node@v4 | ||
|
@@ -59,7 +67,7 @@ jobs: | |
- name: yarn install | ||
run: | | ||
yarn install --immutable | ||
yarn install --immutable && yarn up "service-registry@git+ssh://[email protected]:getsentry/service-registry#main" | ||
- name: Run migration | ||
env: | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
import servicesData from 'service-registry/sentry_service_registry/config/combined/service_registry.json'; | ||
import type { Service, ServiceRegistry } from 'service-registry/types/index'; | ||
|
||
const services: ServiceRegistry = servicesData; | ||
|
||
export function getService(serviceId: string): Service { | ||
return services[serviceId]; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.