mirror of
https://github.com/OneUptime/oneuptime
synced 2024-11-22 07:10:53 +00:00
4587e3136b
This commit updates the Docker configuration in the `.vscode/launch.json` file to improve the debugging experience for Copilot. It modifies the `Debug: Copilot Locally` configuration by changing the `localRoot` to `${workspaceFolder}/TestServer` and updating the `name` to `Copilot: Debug with Docker`. Additionally, it sets the `port` to `9985`, `remoteRoot` to `/usr/src/app`, and enables `restart` and `autoAttachChildProcesses` for better debugging capabilities. These changes enhance the development workflow and make it easier to debug Copilot locally with Docker.
31 lines
942 B
YAML
31 lines
942 B
YAML
# For most projects, this workflow file will not need changing; you simply need
|
|
# to commit it to your repository.
|
|
#
|
|
name: "OneUptime Reliability Copilot"
|
|
|
|
on:
|
|
push:
|
|
branches: [ master ]
|
|
pull_request:
|
|
# The branches below must be a subset of the branches above
|
|
branches: [ master ]
|
|
schedule:
|
|
# Run every day at midnight UTC
|
|
- cron: '0 0 * * *'
|
|
|
|
jobs:
|
|
analyze:
|
|
name: Analyze Code
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
|
|
|
# Run Reliability Copilot in Doker Container
|
|
- name: Run Copilot
|
|
run: |
|
|
docker run --rm -e ONEUPTIME_URL='https://test.oneuptime.com' \
|
|
-e ONEUPTIME_REPOSITORY_SECRET_KEY=${{ secrets.COPILOT_ONEUPTIME_REPOSITORY_SECRET_KEY }} \
|
|
-e CODE_REPOSITORY_PASSWORD=${{ github.token }} \
|
|
-e CODE_REPOSITORY_USERNAME='simlarsen' \
|
|
-e ONEUPTIME_LLM_SERVER_URL='http://57.128.112.160:8547' \
|
|
oneuptime/copilot:test |