Skip to content

Commit bbace97

Browse files
committed
chore: refactor ci
Signed-off-by: Taylor Price <[email protected]>
1 parent 3bab814 commit bbace97

File tree

25 files changed

+275
-292
lines changed

25 files changed

+275
-292
lines changed

.dockerignore

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,11 @@
11
**/node_modules/
22
.local/
3-
.git/
43
**/.venv
54
.github/
65
.cursor/
76
**/bin/
87
**/.vscode/
98
**/.idea/
9+
Dockerfile
10+
LICENSE
11+
README.md
Lines changed: 57 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,57 @@
1+
name: Build release providers
2+
3+
permissions:
4+
id-token: write
5+
contents: read
6+
packages: write
7+
8+
on:
9+
push:
10+
branches:
11+
- main
12+
13+
jobs:
14+
providers-build:
15+
runs-on: depot-ubuntu-22.04
16+
concurrency:
17+
group: oss-providers-build
18+
cancel-in-progress: true
19+
steps:
20+
- uses: actions/checkout@v4
21+
22+
- name: Log in to GitHub Container Registry
23+
uses: docker/login-action@v3
24+
with:
25+
registry: ghcr.io
26+
username: ${{ secrets.GHCR_USERNAME }}
27+
password: ${{ secrets.GHCR_TOKEN }}
28+
29+
- name: Build and Push Docker image
30+
uses: depot/build-push-action@v1
31+
id: build-and-push
32+
with:
33+
project: bbqjs4tj1g
34+
context: .
35+
push: true
36+
pull: true
37+
target: providers
38+
platforms: linux/amd64,linux/arm64
39+
tags: |
40+
ghcr.io/obot-platform/tools/providers:latest
41+
42+
- name: Install Cosign
43+
uses: sigstore/[email protected]
44+
with:
45+
cosign-release: 'v2.4.3'
46+
47+
- name: Sign Images
48+
env:
49+
DIGEST: ${{ steps.build-and-push.outputs.digest }}
50+
TAGS: ghcr.io/obot-platform/tools/providers:latest
51+
run: |
52+
images=""
53+
for tag in ${TAGS}; do
54+
images+="${tag}@${DIGEST} "
55+
done
56+
cosign sign --yes ${images}
57+

.github/workflows/build-tools.yaml

Lines changed: 3 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -11,10 +11,10 @@ on:
1111
- main
1212

1313
jobs:
14-
oss-build:
14+
oss-tools-build:
1515
runs-on: depot-ubuntu-22.04
1616
concurrency:
17-
group: oss-build
17+
group: oss-tools-build
1818
cancel-in-progress: true
1919
steps:
2020
- uses: actions/checkout@v4
@@ -34,13 +34,10 @@ jobs:
3434
context: .
3535
push: true
3636
pull: true
37+
target: tools
3738
platforms: linux/amd64,linux/arm64
3839
tags: |
3940
ghcr.io/${{ github.repository }}:latest
40-
secrets: |
41-
GITHUB_TOKEN=${{ secrets.GHCR_TOKEN }}
42-
build-args: |
43-
TOOL_REGISTRY_REPOS=github.com/obot-platform/tools
4441
4542
- name: Install Cosign
4643
uses: sigstore/[email protected]
@@ -57,13 +54,3 @@ jobs:
5754
images+="${tag}@${DIGEST} "
5855
done
5956
cosign sign --yes ${images}
60-
61-
enterprise-build:
62-
runs-on: ubuntu-latest
63-
steps:
64-
- name: trigger enterprise build
65-
uses: peter-evans/repository-dispatch@v3
66-
with:
67-
token: ${{ secrets.DISPATCH_PAT }}
68-
repository: obot-platform/enterprise-tools
69-
event-type: tools

.github/workflows/test.yaml

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,4 @@ jobs:
3838
project: bbqjs4tj1g
3939
context: .
4040
platforms: linux/amd64,linux/arm64
41-
secrets: |
42-
GITHUB_TOKEN=${{ secrets.GHCR_TOKEN }}
43-
build-args: |
44-
TOOL_REGISTRY_REPOS=github.com/${{ github.event.pull_request.head.repo.full_name }}@${{ github.event.pull_request.head.ref }}
41+
target: tools

Dockerfile

Lines changed: 13 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,22 @@
11
# syntax=docker/dockerfile:1
22
FROM cgr.dev/chainguard/wolfi-base AS base
33

4-
RUN apk add --no-cache go make git nodejs npm pnpm
4+
RUN apk add --no-cache go make git nodejs npm pnpm curl python-3.13 py3.13-pip
55

66
FROM base AS tools
7-
ARG TOOL_REGISTRY_REPOS='github.com/obot-platform/tools'
8-
RUN apk add --no-cache curl python-3.13 py3.13-pip
9-
WORKDIR /app
10-
COPY . .
7+
WORKDIR /obot-tools/tools
8+
COPY . /obot-tools/tools
119
RUN --mount=type=cache,id=pnpm,target=/root/.local/share/pnpm/store \
1210
--mount=type=cache,target=/root/.cache/go-build \
1311
--mount=type=cache,target=/root/.cache/uv \
1412
--mount=type=cache,target=/root/go/pkg/mod \
15-
--mount=type=secret,id=GITHUB_TOKEN,env=GITHUB_TOKEN \
16-
UV_LINK_MODE=copy BIN_DIR=/bin TOOL_REGISTRY_REPOS=$TOOL_REGISTRY_REPOS make package-tools
13+
UV_LINK_MODE=copy BIN_DIR=/bin make package-tools
14+
15+
FROM base AS providers
16+
WORKDIR /obot-tools
17+
COPY ./Makefile /obot-tools/
18+
COPY ./scripts/package-providers.sh /obot-tools/scripts/
19+
20+
RUN --mount=type=cache,target=/root/.cache/go-build \
21+
--mount=type=cache,target=/root/go/pkg/mod \
22+
BIN_DIR=/bin make package-providers

Makefile

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,4 +6,10 @@ test:
66
cd tests && GPTSCRIPT_TOOL_REMAP="github.com/obot-platform/tools=.." go test -v tool_test.go
77

88
package-tools:
9-
./scripts/package-tools.sh
9+
./scripts/package-tools.sh
10+
11+
package-providers:
12+
./scripts/package-providers.sh
13+
14+
docker-build:
15+
docker build -t obot-platform/tools:latest --target tools .

anthropic-model-provider/requirements.txt

Lines changed: 0 additions & 4 deletions
This file was deleted.

file-summarizer/requirements.txt

Lines changed: 0 additions & 3 deletions
This file was deleted.

gemini/requirements.txt

Lines changed: 0 additions & 37 deletions
This file was deleted.

google/calendar/requirements.txt

Lines changed: 0 additions & 5 deletions
This file was deleted.

google/docs/requirements.txt

Lines changed: 0 additions & 3 deletions
This file was deleted.

google/gmail/requirements.txt

Lines changed: 0 additions & 9 deletions
This file was deleted.

google/sheets/requirements.txt

Lines changed: 0 additions & 5 deletions
This file was deleted.

google/youtube/requirements.txt

Lines changed: 0 additions & 21 deletions
This file was deleted.

linkedin-publishing/requirements.txt

Lines changed: 0 additions & 2 deletions
This file was deleted.

placeholder-credential/requirements.txt

Lines changed: 0 additions & 1 deletion
This file was deleted.

proxycurl/requirements.txt

Lines changed: 0 additions & 1 deletion
This file was deleted.

requirements.txt

Lines changed: 74 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,74 @@
1+
2+
aiohappyeyeballs==2.6.1
3+
aiohttp==3.11.16
4+
aiosignal==1.3.2
5+
annotated-types==0.7.0
6+
anthropic==0.49.0
7+
anthropic[bedrock]==0.49.0
8+
anthropic_common @ git+https://github.com/obot-platform/tools.git@f075bcef5c63ab206d3c0d5b12cd2dcf891402b4#subdirectory=anthropic-model-provider
9+
anyio==4.9.0
10+
attrs==25.3.0
11+
azure-identity==1.21.0
12+
azure-mgmt-cognitiveservices==13.6.0
13+
azure-mgmt-resource==23.3.0
14+
beautifulsoup4==4.13.3
15+
boto3==1.37.26
16+
cachetools==5.5.2
17+
certifi==2024.7.4
18+
charset-normalizer==3.3.2
19+
distro==1.9.0
20+
fastapi==0.115.12
21+
filetype==1.2.0
22+
frozenlist==1.5.0
23+
google==3.0.0
24+
google-api-python-client==2.166.0
25+
google-auth==2.38.0
26+
google-auth-httplib2==0.2.0
27+
google-auth-oauthlib==1.2.1
28+
google-genai==1.2.0
29+
gptscript @ git+https://github.com/gptscript-ai/py-gptscript.git@5c00a24fc28af472202df8763d2e99b10d6db097
30+
gspread==6.2.0
31+
h11==0.14.0
32+
html2text==2024.2.26
33+
httpcore==1.0.7
34+
httpx==0.27.0
35+
hubspot-api-client==11.1.0
36+
idna==3.7
37+
jiter==0.7.0
38+
linkedin-api-client==0.3.0
39+
markdownify==1.1.0
40+
mistune==3.1.1 # BSD-3-Clause License
41+
multidict==6.2.0
42+
openai==1.70.0
43+
pandas==2.2.3
44+
pillow==11.1.0
45+
propcache==0.3.1
46+
pyasn1==0.6.1
47+
pyasn1_modules==0.4.2
48+
pydantic==2.9.2
49+
pydantic_core==2.23.4
50+
Pygments==2.19.1
51+
python-dateutil==2.9.0.post0
52+
pytz==2025.2
53+
requests==2.32.2
54+
rfc3339-validator==0.1.4
55+
rsa==4.9
56+
# setuptools dep fixes https://github.com/HubSpot/hubspot-api-python/issues/303
57+
setuptools==78.1.0
58+
simple-salesforce==1.12.6
59+
sniffio==1.3.1
60+
soupsieve==2.6
61+
tavily-python==0.5.1
62+
textstat==0.7.5
63+
tiktoken==0.9.0
64+
tqdm==4.66.3
65+
typing_extensions==4.13.1
66+
urllib3==2.2.2
67+
uvicorn[standard]==0.34.0
68+
voyageai==0.3.2
69+
websockets==14.2
70+
wheel==0.45.1
71+
yake==0.4.8
72+
yarl==1.18.3
73+
youtube-transcript-api==0.6.2
74+
yt-dlp==2024.11.4

0 commit comments

Comments
 (0)