From 12dab7bddaf3c40206200ea59b2d622b1d078f77 Mon Sep 17 00:00:00 2001 From: Simon Larsen Date: Mon, 8 Jul 2024 15:48:05 +0100 Subject: [PATCH] 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. --- .github/workflows/reliability-copilot.yml | 6 ++---- docker-compose.copilot.yml | 1 - 2 files changed, 2 insertions(+), 5 deletions(-) diff --git a/.github/workflows/reliability-copilot.yml b/.github/workflows/reliability-copilot.yml index 12d8c518a5..5b81363e84 100644 --- a/.github/workflows/reliability-copilot.yml +++ b/.github/workflows/reliability-copilot.yml @@ -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 }} \ diff --git a/docker-compose.copilot.yml b/docker-compose.copilot.yml index d1ffc1cc99..634d8f7867 100644 --- a/docker-compose.copilot.yml +++ b/docker-compose.copilot.yml @@ -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