From e75bee1cd45dc8c982a009621dc4699c935d933a Mon Sep 17 00:00:00 2001 From: Benoit Donneaux Date: Wed, 15 May 2024 09:44:19 +0200 Subject: [PATCH] Test docker and add name and id to steps Signed-off-by: Benoit Donneaux --- .gitea/workflows/jekyll.yaml | 35 ++++++++++++++++++++++++++++------- 1 file changed, 28 insertions(+), 7 deletions(-) diff --git a/.gitea/workflows/jekyll.yaml b/.gitea/workflows/jekyll.yaml index f86a549..3bdae98 100644 --- a/.gitea/workflows/jekyll.yaml +++ b/.gitea/workflows/jekyll.yaml @@ -3,17 +3,38 @@ run-name: ${{ gitea.actor }} is running some Gitea Actions 🚀 on: [push] jobs: - Explore-Gitea-Actions: + test-ci-actions: runs-on: lts-bookworm steps: - - run: echo "🎉 The job was automatically triggered by a ${{ gitea.event_name }} event." - - run: echo "🐧 This job is now running on a ${{ runner.os }} server hosted by Gitea!" - - run: echo "🔎 The name of your branch is ${{ gitea.ref }} and your repository is ${{ gitea.repository }}." + - 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 + id: checkout uses: actions/checkout@v4 - - run: echo "💡 The ${{ gitea.repository }} repository has been cloned to the runner." - - run: echo "🖥️ The workflow is now ready to test your code on the runner." + - 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: List files in the repository + id: list run: | ls ${{ gitea.workspace }} - - run: echo "🍏 This job's status is ${{ job.status }}." + - name: Show status + id: status + run: echo "🍏 This job's status is ${{ job.status }}." + - name: Verify Docker + id: verify_docker + run: | + docker run --rm hello-world:latest > /dev/null + docker rmi hello-world:latest > /dev/null + docker version + docker compose version