refactor: Update Docker Compose configuration for Copilot

This commit updates the Docker Compose configuration for Copilot. It removes the unnecessary volume mapping for the COPILOT_REPOSITORY_LOCAL_PATH in the docker-compose.copilot.yml file. This change improves the clarity and simplicity of the configuration file.
This commit is contained in:
Simon Larsen 2024-07-08 15:48:05 +01:00
parent 3eba4da4a8
commit 12dab7bdda
No known key found for this signature in database
GPG Key ID: 96C5DCA24769DBCA
2 changed files with 2 additions and 5 deletions

View File

@ -26,13 +26,11 @@ jobs:
security-events: write
steps:
- name: Checkout repository
uses: actions/checkout@v4
# Run Reliability Copilot in Doker Container
- name: Run Copilot
run: |
docker run --rm -v $(pwd):/repository -w /repository oneuptime/copilot:test \
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 }} \

View File

@ -2,7 +2,6 @@ services:
copilot:
volumes:
- ${COPILOT_REPOSITORY_LOCAL_PATH}:/repository
- ./Copilot:/usr/src/app
# Use node modules of the container and not host system.
# https://stackoverflow.com/questions/29181032/add-a-volume-to-docker-but-exclude-a-sub-folder