From c0c3db57a0453e1e9e56ed451049517ae366efe1 Mon Sep 17 00:00:00 2001 From: Robert Oleynik Date: Wed, 4 Dec 2024 16:56:42 +0100 Subject: [PATCH] fix directory permissions --- .github/workflows/build_test_deploy.yml | 28 ++++++++++++------------- 1 file changed, 14 insertions(+), 14 deletions(-) diff --git a/.github/workflows/build_test_deploy.yml b/.github/workflows/build_test_deploy.yml index 4f2c137176..d1c7f905d7 100644 --- a/.github/workflows/build_test_deploy.yml +++ b/.github/workflows/build_test_deploy.yml @@ -71,7 +71,7 @@ jobs: ports: - 5432:5432 steps: - + - name: Checkout code uses: actions/checkout@v3 with: @@ -94,7 +94,7 @@ jobs: - name: Install frontend dependencies run: corepack enable && yarn install --immutable - + - name: Build webknossos (webpack) run: yarn build @@ -124,8 +124,8 @@ jobs: # docker compose up -d postgres # sleep 3 # docker compose run compile tools/postgres/dbtool.js check-evolutions-schema - - + + - name: Build webknossos (sbt) run: | if [ "${{ github.ref_name }}" == "master" ]; then @@ -146,7 +146,7 @@ jobs: - name: Lint backend code and check formatting run: .github/not-on-master.sh sbt ";scapegoat; scalafmtCheck; util/scalafmtCheck; webknossosTracingstore/scalafmtCheck; webknossosDatastore/scalafmtCheck" - + - name: Run backend tests run: .github/not-on-master.sh sbt -v "testOnly backend.*" @@ -175,30 +175,30 @@ jobs: - name: Setup tmate session uses: mxschmitt/action-tmate@v3 if: ${{ github.event_name == 'workflow_dispatch' && inputs.debug_enabled }} - + - name: Start webknossos, datastore, and tracingstore run: | - mkdir -p fossildb/data && chown -R 999:999 fossildb/data - mkdir -p fossildb/backup && chown -R 999:999 fossildb/backup + mkdir -p fossildb/data && sudo chmod -R "0777" fossildb/data + mkdir -p fossildb/backup && sudo chmod -R "0777" fossildb/backup docker compose up -d webknossos docker compose up -d webknossos-datastore docker compose up -d webknossos-tracingstore - name: Run webknossos smoke test uses: ./.github/actions/health_check_action - with: + with: url: http://localhost:9000/api/health - + - name: Run webknossos-datastore smoke test uses: ./.github/actions/health_check_action - with: + with: url: http://localhost:9090/data/health - name: Run webknossos-tracingstore smoke test uses: ./.github/actions/health_check_action - with: + with: url: http://localhost:9050/tracings/health - + - name: Run end-to-end tests uses: nick-invision/retry@v2 with: @@ -218,7 +218,7 @@ jobs: docker compose push webknossos docker compose push webknossos-datastore docker compose push webknossos-tracingstore - + if [[ ${{ github.ref_type }} == "branch" ]]; then docker tag scalableminds/webknossos:${DOCKER_TAG} scalableminds/webknossos:${NORMALIZED_BRANCH} retry docker push scalableminds/webknossos:${NORMALIZED_BRANCH}