Invidious is an alternative front-end to YouTube
CI: Fix build-docker job not checking if Invidious starts successfully or not
Fijxucc643f209a95
diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.ymlindex 7a5e8850..27debc1e 100644--- a/.github/workflows/ci.yml+++ b/.github/workflows/ci.yml@@ -105,11 +105,21 @@ jobs:- name: Build Dockerrun: docker compose build+ - name: Change hmac_key on docker-compose.yml+ run: sed -i '/hmac_key/s/CHANGE_ME!!/docker-build-hmac-key/' docker-compose.yml+- name: Run Dockerrun: docker compose up -d- name: Test Docker- run: while curl -Isf http://localhost:3000; do sleep 1; done+ id: test+ run: curl -If http://localhost:3000 --retry 5 --retry-delay 1 --retry-all-errors++ - name: Print Invidious container logs+ # Tells Github Actions to always run this step regardless of whether the previous step has failed+ # Without this expression this step would simply be skipped when the previous step fails.+ if: success() || steps.test.conclusion == 'failure'+ run: docker compose logslint:diff --git a/docker-compose.yml b/docker-compose.ymlindex afda8726..0de51feb 100644--- a/docker-compose.yml+++ b/docker-compose.yml@@ -14,6 +14,10 @@ services:restart: unless-stoppedports:- "127.0.0.1:3000:3000"+ depends_on:+ invidious-db:+ condition: service_healthy+ restart: trueenvironment:# Please read the following file for a comprehensive list of all available# configuration options and their associated syntax: