ci: provide generated image url as build image output
This commit is contained in:
parent
c7a3d48afc
commit
b38d48f548
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user