From 3fa359d676bbfa0d67b4012edc7121a42b82bc43 Mon Sep 17 00:00:00 2001 From: Georg Bauer Date: Tue, 16 Feb 2021 14:30:58 +0100 Subject: [PATCH] wonderful --- .github/actions/my-action/entrypoint.sh | 6 +++--- .github/workflows/main.yml | 23 +++++++++-------------- 2 files changed, 12 insertions(+), 17 deletions(-) diff --git a/.github/actions/my-action/entrypoint.sh b/.github/actions/my-action/entrypoint.sh index a44f659..15e9563 100644 --- a/.github/actions/my-action/entrypoint.sh +++ b/.github/actions/my-action/entrypoint.sh @@ -1,7 +1,7 @@ #!/bin/sh -l -echo "--------- Print Version ---------" -python3 --version +echo "--------- Show version information of docker container ---------" cat /etc/os-release -echo "--------- Run Test ---------" +python3 --version +echo "--------- Run test at docker container ---------" python3 test.py \ No newline at end of file diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 4bda4e1..82ca369 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -21,30 +21,25 @@ jobs: # Steps represent a sequence of tasks that will be executed as part of the job steps: # Runs some prints - - name: Show version + - name: Show version information of vm run: | - python3 --version cat /etc/os-release + python3 --version # Checks-out your repository under $GITHUB_WORKSPACE - name: Check out repository uses: actions/checkout@v2 - # Use own action: uses an own docker container created by a dockerfile + # Use own action: uses an own docker container created by a dockerfile with entrypoint.sh - name: Run docker container with test.py uses: ./.github/actions/my-action - # Runs some prints - - name: Show version - run: | - python3 --version - cat /etc/os-release - # Runs a test job + # Runs a test job at VM - name: Run test run: python3 test.py - # build job + # Runs a build job + - name: Build job + run: python3 build.py + # Build job - name: Upload result of build job uses: actions/upload-artifact@v2 with: name: output - path: myfile.txt - # Runs a test job - - name: Run test - run: python3 test.py + path: myfile.txt \ No newline at end of file