File tree Expand file tree Collapse file tree 3 files changed +17
-1
lines changed Expand file tree Collapse file tree 3 files changed +17
-1
lines changed Original file line number Diff line number Diff line change @@ -103,11 +103,19 @@ jobs:
103
103
- name : Build Docker
104
104
run : docker compose -f ${{ matrix.docker_compose_file }} build
105
105
106
+ - name : Change hmac_key on ${{ matrix.docker_compose_file }}
107
+ run : sed -i '/hmac_key/s/CHANGE_ME!!/docker-build-hmac-key/' ${{ matrix.docker_compose_file }}
108
+
106
109
- name : Run Docker
107
110
run : docker compose up -d
108
111
109
112
- name : Test Docker
110
- run : while curl -Isf http://localhost:3000; do sleep 1; done
113
+ id : test
114
+ run : curl -If http://localhost:3000 --retry 5 --retry-delay 1 --retry-all-errors
115
+
116
+ - name : Print Invidious container logs
117
+ if : success() || steps.test.conclusion == 'failure'
118
+ run : docker compose logs
111
119
112
120
lint :
113
121
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:
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