diff --git a/.gitea/workflows/build-image.yml b/.gitea/workflows/build-image.yml index f4f0e2d..cb36533 100644 --- a/.gitea/workflows/build-image.yml +++ b/.gitea/workflows/build-image.yml @@ -11,10 +11,17 @@ on: runner: required: true type: string + outputs: + image: + description: "full url of pushed image" + value: ${{ jobs.Build-Image.outputs.image-url }} jobs: Build-Image: runs-on: ["${{ inputs.runner }}"] + outputs: + image-url: ${{ steps.lcname.outputs.image-name }} + 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!" @@ -30,3 +37,5 @@ jobs: REPOSITORY: '${{ gitea.repository }}' - run: podman build -t gitea.pena:3000/${{ env.REPOSITORY_LC }}/${{ gitea.ref_name }}:${{ gitea.run_id }} . - run: podman push gitea.pena:3000/${{ env.REPOSITORY_LC }}/${{ gitea.ref_name }}:${{ gitea.run_id }} + - id: lcname + run: echo "image-name=gitea.pena:3000/${{ env.REPOSITORY_LC }}/${{ gitea.ref_name }}:${{ gitea.run_id }}" >> $GITEA_OUTPUT