Implement Jekyll CI workflow with docker #2

Merged
btlogy merged 60 commits from 1.test-ci into main 2024-05-23 12:16:39 +00:00
1 changed files with 4 additions and 3 deletions
Showing only changes of commit 940890cdda - Show all commits

View File

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