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

Commit a838ffd

Browse files
committed
try to fix healtcheck job
1 parent c811a51 commit a838ffd

File tree

2 files changed

+23
-22
lines changed

2 files changed

+23
-22
lines changed

.github/workflows/ci.yml

+20-20
Original file line numberDiff line numberDiff line change
@@ -62,24 +62,24 @@ jobs:
6262
- name: Clear
6363
run: make ci-clear
6464

65-
# healthcheck:
66-
# runs-on: ubuntu-latest
67-
# needs: build
68-
# steps:
69-
# - name: Checkout code
70-
# uses: actions/checkout@v4
71-
72-
# - name: Prepare
73-
# run: cp ./.env.example ./.env
74-
75-
# - name: Download image
76-
# uses: actions/download-artifact@v4
77-
# with:
78-
# name: bmstu_2024-app
79-
# path: /tmp
80-
81-
# - name: Load container
82-
# run: docker load --input /tmp/bmstu_2024-app.tar
65+
healthcheck:
66+
runs-on: ubuntu-latest
67+
needs: build
68+
steps:
69+
- name: Checkout code
70+
uses: actions/checkout@v4
71+
72+
- name: Prepare
73+
run: cp ./.env.example ./.env
74+
75+
- name: Download image
76+
uses: actions/download-artifact@v4
77+
with:
78+
name: bmstu_2024-app
79+
path: /tmp
80+
81+
- name: Load container
82+
run: docker load --input /tmp/bmstu_2024-app.tar
8383

84-
# - name: Healthcheck
85-
# run: make ci-up-healthy
84+
- name: Healthcheck
85+
run: make ci-up-healthy

Dockerfile.dev

+3-2
Original file line numberDiff line numberDiff line change
@@ -43,8 +43,9 @@ RUN adduser -D rails --shell /bin/bash
4343
RUN mkdir -p /usr/local/bundle/ruby/3.2.0/cache
4444
RUN chown -R rails:rails \
4545
db log storage tmp \
46-
/usr/local/bundle/ruby/3.2.0/cache
47-
RUN chmod -R 777 /usr/local/bundle/ruby/3.2.0/cache
46+
/usr/local/bundle/ruby/3.2.0/cache \
47+
/rails/log
48+
RUN chmod -R 777 /usr/local/bundle/ruby/3.2.0/cache /rails/log
4849

4950
USER rails:rails
5051

0 commit comments

Comments
 (0)