diff --git a/.gitea/workflows/build.yml b/.gitea/workflows/build.yml index 28ab5fa..690c918 100644 --- a/.gitea/workflows/build.yml +++ b/.gitea/workflows/build.yml @@ -6,12 +6,15 @@ env: COMMIT_ID: ${{ github.sha }} jobs: Explore-Gitea-Actions: + env: + IMAGE_NAME: $(echo $REPOSITORY | awk -F/ '{print $NF}') + IMAGE_TAG: ${COMMIT_ID:0:10} runs-on: ubuntu-latest steps: - run: echo "🎉 The job was automatically triggered by a ${{ github.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 ${{ github.ref }} and your repository is ${{ github.repository }}." - - run: echo "repository_name is $(echo $REPOSITORY | awk -F/ '{print $NF}'), docker tag is ${COMMIT_ID:0:10}" + - run: echo "repository_name is $IMAGE_NAME, docker tag is $IMAGE_TAG" - name: Check out repository code uses: actions/checkout@v3 - run: echo "💡 The ${{ github.repository }} repository has been cloned to the runner."