From 940890cdda9b949e06dd1dd79882b0e08be4569e Mon Sep 17 00:00:00 2001 From: Benoit Donneaux Date: Wed, 22 May 2024 17:22:34 +0200 Subject: [PATCH] Revert "Name the volume with existing variables" This reverts commit b15883c239122154bebc57fbf551ee6f952cf4d9. --- .gitea/workflows/jekyll.yaml | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/.gitea/workflows/jekyll.yaml b/.gitea/workflows/jekyll.yaml index 3b35875..482871c 100644 --- a/.gitea/workflows/jekyll.yaml +++ b/.gitea/workflows/jekyll.yaml @@ -45,12 +45,13 @@ jobs: - name: Verify Jekyll container id: verify_image run: | - docker volume ls ${JOB_CONTAINER_NAME} - docker-compose run --rm --entrypoint bash -v "${JOB_CONTAINER_NAME}:/home/ubuntu/workspace" jekyll -c "whoami; pwd; ls -lA ." + VOL=$(docker volume ls | grep -Po "GITEA-ACTIONS-TASK-[0-9]+_WORKFLOW-Jekyll_JOB-test-ci-actions$") + docker-compose run --rm --entrypoint bash -v "${VOL}:/home/ubuntu/workspace" jekyll -c "whoami; pwd; ls -lA ." - name: Build Jekyll site id: build_site run: | - docker-compose run --rm -v "${JOB_CONTAINER_NAME}:/home/ubuntu/workspace" jekyll build --verbose + VOL=$(docker volume ls | grep -Po "GITEA-ACTIONS-TASK-[0-9]+_WORKFLOW-Jekyll_JOB-test-ci-actions$") + docker-compose run --rm -v "${VOL}:/home/ubuntu/workspace" jekyll build --verbose - name: Upload Jekyll site id: upload_site uses: "actions/upload-artifact@v3"