From a838ffdc00039f16d3ebb158a3c1e4765ef5da3f Mon Sep 17 00:00:00 2001 From: Vyacheslav Zalygin Date: Wed, 17 Jul 2024 20:46:07 +0300 Subject: [PATCH] try to fix healtcheck job --- .github/workflows/ci.yml | 40 ++++++++++++++++++++-------------------- Dockerfile.dev | 5 +++-- 2 files changed, 23 insertions(+), 22 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index feecb1ce..2058aa67 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -62,24 +62,24 @@ jobs: - name: Clear run: make ci-clear - # healthcheck: - # runs-on: ubuntu-latest - # needs: build - # steps: - # - name: Checkout code - # uses: actions/checkout@v4 - - # - name: Prepare - # run: cp ./.env.example ./.env - - # - name: Download image - # uses: actions/download-artifact@v4 - # with: - # name: bmstu_2024-app - # path: /tmp - - # - name: Load container - # run: docker load --input /tmp/bmstu_2024-app.tar + healthcheck: + runs-on: ubuntu-latest + needs: build + steps: + - name: Checkout code + uses: actions/checkout@v4 + + - name: Prepare + run: cp ./.env.example ./.env + + - name: Download image + uses: actions/download-artifact@v4 + with: + name: bmstu_2024-app + path: /tmp + + - name: Load container + run: docker load --input /tmp/bmstu_2024-app.tar - # - name: Healthcheck - # run: make ci-up-healthy + - name: Healthcheck + run: make ci-up-healthy diff --git a/Dockerfile.dev b/Dockerfile.dev index 2afa2a53..327efde7 100644 --- a/Dockerfile.dev +++ b/Dockerfile.dev @@ -43,8 +43,9 @@ RUN adduser -D rails --shell /bin/bash RUN mkdir -p /usr/local/bundle/ruby/3.2.0/cache RUN chown -R rails:rails \ db log storage tmp \ - /usr/local/bundle/ruby/3.2.0/cache -RUN chmod -R 777 /usr/local/bundle/ruby/3.2.0/cache + /usr/local/bundle/ruby/3.2.0/cache \ + /rails/log +RUN chmod -R 777 /usr/local/bundle/ruby/3.2.0/cache /rails/log USER rails:rails