Cleanup the workflow
Jekyll / test-ci-actions (push) Failing after 18s
Details
Jekyll / test-ci-actions (push) Failing after 18s
Details
Signed-off-by: Benoit Donneaux <benoit@leastauthority.com>
This commit is contained in:
parent
4dd57bf844
commit
a73d5986bc
|
@ -6,24 +6,9 @@ jobs:
|
||||||
test-ci-actions:
|
test-ci-actions:
|
||||||
runs-on: ubuntu-22.04
|
runs-on: ubuntu-22.04
|
||||||
steps:
|
steps:
|
||||||
- name: Show event
|
|
||||||
id: event
|
|
||||||
run: echo "🎉 The job was automatically triggered by a ${{ gitea.event_name }} event."
|
|
||||||
- name: Show runner
|
|
||||||
id: runner
|
|
||||||
run: echo "🐧 This job is now running on a ${{ runner.os }} server hosted by Gitea!"
|
|
||||||
- name: Show repository
|
|
||||||
id: repository
|
|
||||||
run: echo "🔎 The name of your branch is ${{ gitea.ref }} and your repository is ${{ gitea.repository }}."
|
|
||||||
- name: Check out repository code
|
- name: Check out repository code
|
||||||
id: checkout
|
id: checkout
|
||||||
uses: actions/checkout@v4
|
uses: actions/checkout@v4
|
||||||
- name: Show clone completed
|
|
||||||
id: cloned
|
|
||||||
run: echo "💡 The ${{ gitea.repository }} repository has been cloned to the runner."
|
|
||||||
- name: Show readiness
|
|
||||||
id: ready
|
|
||||||
run: echo "🖥️ The workflow is now ready to test your code on the runner."
|
|
||||||
- name: Fix file permissions
|
- name: Fix file permissions
|
||||||
id: fix_permissions
|
id: fix_permissions
|
||||||
run: |
|
run: |
|
||||||
|
@ -35,14 +20,6 @@ jobs:
|
||||||
{ groupmod -g "${gid}" "${group}" && usermod -md /home/${user} -s /bin/bash -g "${group}" -u "${uid}" "${user}"; } || \
|
{ groupmod -g "${gid}" "${group}" && usermod -md /home/${user} -s /bin/bash -g "${group}" -u "${uid}" "${user}"; } || \
|
||||||
{ groupadd -g "${gid}" "${group}" && useradd -md /home/${user} -s /bin/bash -g "${group}" -u "${uid}" "${user}"; }
|
{ groupadd -g "${gid}" "${group}" && useradd -md /home/${user} -s /bin/bash -g "${group}" -u "${uid}" "${user}"; }
|
||||||
chown -R ubuntu:ubuntu .
|
chown -R ubuntu:ubuntu .
|
||||||
- name: List files in the repository
|
|
||||||
id: list
|
|
||||||
run: |
|
|
||||||
ls -lA ${{ gitea.workspace }}
|
|
||||||
pwd
|
|
||||||
- name: Show status
|
|
||||||
id: status
|
|
||||||
run: echo "🍏 This job's status is ${{ job.status }}."
|
|
||||||
- name: Install docker
|
- name: Install docker
|
||||||
id: install_docker
|
id: install_docker
|
||||||
run: |
|
run: |
|
||||||
|
@ -65,9 +42,9 @@ jobs:
|
||||||
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$")
|
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 ."
|
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: |
|
||||||
VOL=$(docker volume ls | grep -Po "GITEA-ACTIONS-TASK-[0-9]+_WORKFLOW-Jekyll_JOB-test-ci-actions$")
|
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
|
docker compose run --rm -v "${VOL}:/home/ubuntu/workspace" jekyll build --verbose
|
||||||
|
|
Loading…
Reference in New Issue