Name the volume with existing variables
Jekyll / test-ci-actions (push) Failing after 17s Details

Signed-off-by: Benoit Donneaux <benoit@leastauthority.com>
This commit is contained in:
bEn 2024-05-22 17:12:11 +02:00
parent 2cdbfd47a9
commit b15883c239
1 changed files with 3 additions and 4 deletions

View File

@ -45,13 +45,12 @@ jobs:
- name: Verify Jekyll container - name: Verify Jekyll container
id: verify_image id: verify_image
run: | run: |
VOL=$(docker volume ls | grep -Po "GITEA-ACTIONS-TASK-[0-9]+_WORKFLOW-Jekyll_JOB-test-ci-actions$") docker volume ls ${JOB_CONTAINER_NAME}
docker-compose run --rm --entrypoint bash -v "${VOL}:/home/ubuntu/workspace" jekyll -c "whoami; pwd; ls -lA ." docker-compose run --rm --entrypoint bash -v "${JOB_CONTAINER_NAME}:/home/ubuntu/workspace" jekyll -c "whoami; pwd; ls -lA ."
- name: Build Jekyll site - name: Build Jekyll site
id: build_site id: build_site
run: | run: |
VOL=$(docker volume ls | grep -Po "GITEA-ACTIONS-TASK-[0-9]+_WORKFLOW-Jekyll_JOB-test-ci-actions$") docker-compose run --rm -v "${JOB_CONTAINER_NAME}:/home/ubuntu/workspace" jekyll build --verbose
docker-compose run --rm -v "${VOL}:/home/ubuntu/workspace" jekyll build --verbose
- name: Upload Jekyll site - name: Upload Jekyll site
id: upload_site id: upload_site
uses: "actions/upload-artifact@v3" uses: "actions/upload-artifact@v3"