File tree Expand file tree Collapse file tree 2 files changed +15
-1
lines changed Expand file tree Collapse file tree 2 files changed +15
-1
lines changed Original file line number Diff line number Diff line change @@ -105,11 +105,21 @@ jobs:
105
105
- name : Build Docker
106
106
run : docker compose build
107
107
108
+ - name : Change hmac_key on docker-compose.yml
109
+ run : sed -i '/hmac_key/s/CHANGE_ME!!/docker-build-hmac-key/' docker-compose.yml
110
+
108
111
- name : Run Docker
109
112
run : docker compose up -d
110
113
111
114
- name : Test Docker
112
- run : while curl -Isf http://localhost:3000; do sleep 1; done
115
+ id : test
116
+ run : curl -If http://localhost:3000 --retry 5 --retry-delay 1 --retry-all-errors
117
+
118
+ - name : Print Invidious container logs
119
+ # Tells Github Actions to always run this step regardless of whether the previous step has failed
120
+ # Without this expression this step would simply be skipped when the previous step fails.
121
+ if : success() || steps.test.conclusion == 'failure'
122
+ run : docker compose logs
113
123
114
124
lint :
115
125
Original file line number Diff line number Diff line change @@ -14,6 +14,10 @@ services:
14
14
restart : unless-stopped
15
15
ports :
16
16
- " 127.0.0.1:3000:3000"
17
+ depends_on :
18
+ invidious-db :
19
+ condition : service_healthy
20
+ restart : true
17
21
environment :
18
22
# Please read the following file for a comprehensive list of all available
19
23
# configuration options and their associated syntax:
You can’t perform that action at this time.
0 commit comments