Skip to content

Commit 0885041

Browse files
authored
Move plugins from plugins/example/ to plugins/ (#4752)
## Summary - Flatten plugin directory structure by moving all contents from `plugins/example/` up one level to `plugins/` - Update `COPY` paths in both `Dockerfile` and `Dockerfile.datadog` to reference `plugins/` instead of `plugins/example/` - Update GitHub Actions workflow (`gcp_plugins.yml`) trigger path and docker build `-f` flag to match new structure ## Test plan - [ ] Verify `plugins/` contains all expected files (main.py, db.py, models.py, subdirectories, etc.) - [ ] Verify `plugins/example/` no longer has any tracked files - [ ] Confirm deployment triggers correctly on next push to `main` - [ ] Validate Docker build works with updated COPY paths 🤖 Generated with [Claude Code](https://claude.com/claude-code)
2 parents 15df441 + a0d295e commit 0885041

File tree

219 files changed

+33608
-75
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

219 files changed

+33608
-75
lines changed

.github/workflows/gcp_plugins.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ on:
66
push:
77
branches: [ "main", "development" ]
88
paths:
9-
- 'plugins/example/**'
9+
- 'plugins/**'
1010

1111
env:
1212
SERVICE: plugins
@@ -34,7 +34,7 @@ jobs:
3434

3535
- name: Build and Push Docker image
3636
run: |
37-
docker build -t gcr.io/${{ vars.GCP_PROJECT_ID }}/${{ env.SERVICE }} -f plugins/example/Dockerfile .
37+
docker build -t gcr.io/${{ vars.GCP_PROJECT_ID }}/${{ env.SERVICE }} -f plugins/Dockerfile .
3838
docker push gcr.io/${{ vars.GCP_PROJECT_ID }}/${{ env.SERVICE }}
3939
4040
- name: Deploy to Cloud Run
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ FROM python:3.11 AS builder
33
ENV PATH="/opt/venv/bin:$PATH"
44
RUN python -m venv /opt/venv
55

6-
COPY plugins/example/requirements.txt /tmp/requirements.txt
6+
COPY plugins/requirements.txt /tmp/requirements.txt
77
RUN pip install --no-cache-dir -r /tmp/requirements.txt
88

99
FROM python:3.11-slim
@@ -14,7 +14,7 @@ ENV PATH="/opt/venv/bin:$PATH"
1414
RUN apt-get update && apt-get -y install ffmpeg curl unzip && rm -rf /var/lib/apt/lists/*
1515

1616
COPY --from=builder /opt/venv /opt/venv
17-
COPY plugins/example/ .
17+
COPY plugins/ .
1818

1919
EXPOSE 8080
2020
CMD ["uvicorn", "main:app", "--host", "0.0.0.0", "--port", "8080"]
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ FROM python:3.11 AS builder
33
ENV PATH="/opt/venv/bin:$PATH"
44
RUN python -m venv /opt/venv
55

6-
COPY plugins/example/requirements.txt /tmp/requirements.txt
6+
COPY plugins/requirements.txt /tmp/requirements.txt
77
RUN pip install --no-cache-dir -r /tmp/requirements.txt
88

99
FROM python:3.11-slim
@@ -16,7 +16,7 @@ RUN apt-get update && apt-get -y install ffmpeg curl unzip && rm -rf /var/lib/ap
1616

1717
COPY --from=builder /opt/venv /opt/venv
1818
COPY --from=gcr.io/datadoghq/serverless-init:1 /datadog-init /app/datadog-init
19-
COPY plugins/example/ .
19+
COPY plugins/ .
2020

2121
EXPOSE 8080
2222
ENTRYPOINT ["/app/datadog-init"]

plugins/README.md

Lines changed: 66 additions & 2 deletions

0 commit comments

Comments
 (0)