From 631f11007c820ecbce616abbf55bd4a121592119 Mon Sep 17 00:00:00 2001 From: "Alex Lau (AvengerMoJo)" Date: Thu, 21 Sep 2023 14:25:40 +0800 Subject: [PATCH] fix the typo actions Signed-off-by: Alex Lau (AvengerMoJo) --- .gitea/workflows/obs-service.yaml | 23 +++++++---------------- Dockerfile | 7 ++++++- 2 files changed, 13 insertions(+), 17 deletions(-) diff --git a/.gitea/workflows/obs-service.yaml b/.gitea/workflows/obs-service.yaml index 987917d..a6eb014 100644 --- a/.gitea/workflows/obs-service.yaml +++ b/.gitea/workflows/obs-service.yaml @@ -2,24 +2,15 @@ name: Gitea Actions Demo run-name: ${{ gitea.actor }} is testing out Gitea Actions 🚀 on: [push] jobs: - OBS-Service-Actions-Test: + hello_world_job: runs-on: ubuntu-latest + name: A job to say hello 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 opensuse!" - - run: echo "🔎 The name of your branch is ${{ gitea.ref }} and your repository is ${{ gitea.repository }}." - - name: Check out repository code - uses: actions/checkout@v3 - - 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: List files in the repository - run: | - ls ${{ gitea.workspace }} - - run: echo "🍏 This job's status is ${{ job.status }}." - - name: Hello action steps + - name: Hello world action step id: hello - uses: actions/hello-docker-action@v2 + uses: actions/hello-world-docker-action@v2 with: - who-to-greety: 'AvengerMoJo' + who-to-greet: 'AvengerMoJo' + # Use the output from the `hello` step - name: Get the output time - run: echo "The time was ${{ steps.hello.outputs.time }}" + run: echo "The time was ${{ steps.hello.outputs.time }}"kkk diff --git a/Dockerfile b/Dockerfile index 2dfd84f..66a7c9a 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,5 +1,10 @@ FROM opensuse/tumbleweed:latest +RUN zypper --non-interactive update +RUN zypper --non-interactive install osc +RUN zypper --non-interactive clean --all + COPY hello.sh /hello.sh -ENTRYPOINT ["/hello.sh"] +# ENTRYPOINT ["/hello.sh"] +CMD ["/bin/bash"]