File tree Expand file tree Collapse file tree 2 files changed +18
-1
lines changed Expand file tree Collapse file tree 2 files changed +18
-1
lines changed Original file line number Diff line number Diff line change @@ -25,6 +25,7 @@ services:
25
25
26
26
27
27
server :
28
+ container_name : simple-server
28
29
image : simpledotorg/server
29
30
# command: bash -c "rm -f tmp/pids/server.pid ; bundle install ; bundle exec rake db:setup ; bundle exec rails s -p 3000 -b '0.0.0.0'"
30
31
command : bash -c "bash ./run_docker_server.sh"
Original file line number Diff line number Diff line change 90
90
uses : actions/checkout@v4
91
91
92
92
- name : Start Simple Docker server
93
- run : .github/scripts/deploy_docker_server.sh
93
+ run : |
94
+ .github/scripts/deploy_docker_server.sh
95
+ echo "CONTAINER_ID=$(docker container ls -q -f name=simple-server)" >> $GITHUB_ENV
94
96
95
97
- name : Cache AVD
96
98
uses : actions/cache@v4
@@ -157,6 +159,20 @@ jobs:
157
159
name : failed-test-artifacts
158
160
path : app/build/outputs/test-artifacts
159
161
162
+ - name : Extract Docker logs
163
+ if : always()
164
+ run : |
165
+ docker cp ${{ env.CONTAINER_ID }}:/home/app/log ./docker_logs
166
+ zip -r docker_logs.zip docker_logs/
167
+
168
+
169
+ - name : Upload Docker logs
170
+ if : always()
171
+ uses : actions/upload-artifact@v4
172
+ with :
173
+ name : docker-logs
174
+ path : docker_logs.zip
175
+
160
176
- name : Stop Simple Docker server
161
177
run : |
162
178
docker compose -f ".github/docker/simple-server.compose.yml" down
You can’t perform that action at this time.
0 commit comments