Skip to content

Commit e8acfcc

Browse files
Merge branch 'main' into v3
2 parents 98a662c + 1b7ce39 commit e8acfcc

37 files changed

+679
-750
lines changed
Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
name: GCP Deploy (staging)
2+
3+
on:
4+
workflow_run:
5+
workflows: ["Publish to ghcr (staging)"]
6+
types:
7+
- completed
8+
9+
jobs:
10+
deploy:
11+
name: Deploy staging app to GCP
12+
runs-on: ubuntu-latest
13+
14+
steps:
15+
- name: Configure SSH
16+
run: |
17+
mkdir -p ~/.ssh/
18+
echo "${{ secrets.GCP_STAGING_SSH_PRIVATE_KEY }}" > ~/.ssh/private.key
19+
chmod 600 ~/.ssh/private.key
20+
echo "${{ secrets.GCP_STAGING_SSH_KNOWN_HOSTS }}" >> ~/.ssh/known_hosts
21+
22+
- name: Deploy to GCP
23+
run: |
24+
ssh -i ~/.ssh/private.key ${{ secrets.GCP_STAGING_USERNAME }}@${{ secrets.GCP_STAGING_HOST }} << 'EOF'
25+
# Stop and remove any existing container
26+
docker stop -t 60 sourcebot-staging || true
27+
docker rm sourcebot-staging || true
28+
29+
# Run new container
30+
docker run -d \
31+
-p 80:3000 \
32+
--rm \
33+
--pull always \
34+
--env-file .env.staging \
35+
-v /mnt/data:/data \
36+
--name sourcebot-staging \
37+
ghcr.io/sourcebot-dev/sourcebot:staging
38+
EOF

.github/workflows/ghcr-publish.yml

Lines changed: 10 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ env:
1414

1515
jobs:
1616
build:
17-
runs-on: ubuntu-latest
17+
runs-on: ${{ matrix.runs-on}}
1818
permissions:
1919
contents: read
2020
packages: write
@@ -23,9 +23,14 @@ jobs:
2323
id-token: write
2424
strategy:
2525
matrix:
26-
platform:
27-
- linux/amd64
28-
- linux/arm64
26+
platform: [linux/amd64, linux/arm64]
27+
include:
28+
- platform: linux/amd64
29+
runs-on: ubuntu-latest
30+
- platform: linux/arm64
31+
runs-on: ubuntu-24.04-arm
32+
33+
2934

3035
steps:
3136
- name: Prepare
@@ -76,7 +81,7 @@ jobs:
7681
build-args: |
7782
SOURCEBOT_VERSION=${{ github.ref_name }}
7883
POSTHOG_PAPIK=${{ secrets.POSTHOG_PAPIK }}
79-
84+
8085
- name: Export digest
8186
run: |
8287
mkdir -p /tmp/digests

.github/workflows/staging-ghcr-public.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,8 @@ jobs:
7070
outputs: type=image,name=${{ env.REGISTRY_IMAGE }},push-by-digest=true,name-canonical=true,push=true
7171
build-args: |
7272
SOURCEBOT_VERSION=${{ github.ref_name }}
73-
POSTHOG_PAPIK=${{ secrets.STAGING_POSTHOG_PAPIK }}
73+
POSTHOG_PAPIK=${{ secrets.POSTHOG_PAPIK }}
74+
SOURCEBOT_ENCRYPTION_KEY=${{ secrets.STAGING_SOURCEBOT_ENCRYPTION_KEY }}
7475
7576
- name: Export digest
7677
run: |

CHANGELOG.md

Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,47 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
77

88
## [Unreleased]
99

10+
## [2.8.4] - 2025-03-14
11+
12+
### Fixed
13+
14+
- Fixed bug where Sourcebot Cloud card was shown to self-hosted users
15+
16+
## [2.8.3] - 2025-03-13
17+
18+
### Fixed
19+
20+
- Made syntax reference guide keyboard shortcut hints clickable. ([#229](https://github.com/sourcebot-dev/sourcebot/pull/229))
21+
22+
## [2.8.2] - 2025-02-20
23+
24+
### Fixed
25+
26+
- Remove `repo_synced` telemetry event.
27+
28+
## [2.8.1] - 2025-01-28
29+
30+
### Added
31+
32+
- Added `maxTrigramCount` to the config to control the maximum allowable of trigrams per document.
33+
34+
### Fixed
35+
36+
- Fixed issue with version upgrade toast not appearing without a hard refresh. ([#179](https://github.com/sourcebot-dev/sourcebot/pull/179))
37+
38+
## [2.8.0] - 2025-01-17
39+
40+
### Added
41+
42+
- Added a syntax reference guide. The guide can be opened using the hotkey "Cmd + /" ("Ctrl + /" on Windows). ([#169](https://github.com/sourcebot-dev/sourcebot/pull/169))
43+
44+
## [2.7.1] - 2025-01-15
45+
46+
### Fixed
47+
48+
- Fixed issue where we crash on startup if the install / upgrade PostHog event fails to send. ([#159](https://github.com/sourcebot-dev/sourcebot/pull/159))
49+
- Fixed issue with broken file links. ([#161](https://github.com/sourcebot-dev/sourcebot/pull/161))
50+
1051
## [2.7.0] - 2025-01-10
1152

1253
### Added

Dockerfile

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,7 @@ ENV NEXT_TELEMETRY_DISABLED=1
4646
# @see: https://phase.dev/blog/nextjs-public-runtime-variables/
4747
ARG NEXT_PUBLIC_SOURCEBOT_TELEMETRY_DISABLED=BAKED_NEXT_PUBLIC_SOURCEBOT_TELEMETRY_DISABLED
4848
ARG NEXT_PUBLIC_SOURCEBOT_VERSION=BAKED_NEXT_PUBLIC_SOURCEBOT_VERSION
49+
ENV NEXT_PUBLIC_PUBLIC_SEARCH_DEMO=BAKED_NEXT_PUBLIC_PUBLIC_SEARCH_DEMO
4950
ENV NEXT_PUBLIC_POSTHOG_PAPIK=BAKED_NEXT_PUBLIC_POSTHOG_PAPIK
5051
ENV NEXT_PUBLIC_STRIPE_PUBLISHABLE_KEY=BAKED_NEXT_PUBLIC_STRIPE_PUBLISHABLE_KEY
5152
ENV NEXT_PUBLIC_SENTRY_ENVIRONMENT=BAKED_NEXT_PUBLIC_SENTRY_ENVIRONMENT
@@ -93,6 +94,10 @@ ARG SOURCEBOT_VERSION=unknown
9394
ENV SOURCEBOT_VERSION=$SOURCEBOT_VERSION
9495
RUN echo "Sourcebot Version: $SOURCEBOT_VERSION"
9596

97+
ARG PUBLIC_SEARCH_DEMO=false
98+
ENV PUBLIC_SEARCH_DEMO=$PUBLIC_SEARCH_DEMO
99+
RUN echo "Public Search Demo: $PUBLIC_SEARCH_DEMO"
100+
96101
# Valid values are: debug, info, warn, error
97102
ENV SOURCEBOT_LOG_LEVEL=info
98103

0 commit comments

Comments
 (0)