Skip to content
This repository has been archived by the owner on Sep 11, 2024. It is now read-only.

Commit

Permalink
try to fix healtcheck job
Browse files Browse the repository at this point in the history
  • Loading branch information
vzalygin committed Jul 17, 2024
1 parent c811a51 commit a838ffd
Show file tree
Hide file tree
Showing 2 changed files with 23 additions and 22 deletions.
40 changes: 20 additions & 20 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
5 changes: 3 additions & 2 deletions Dockerfile.dev
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down

0 comments on commit a838ffd

Please sign in to comment.