diff --git a/.github/workflows/pull_request_container_build.yaml b/.github/workflows/pull_request_container_build.yaml index 9ec0591..4628409 100644 --- a/.github/workflows/pull_request_container_build.yaml +++ b/.github/workflows/pull_request_container_build.yaml @@ -33,10 +33,16 @@ on: DOCKER_SECRETS: description: Docker build secrets required: false + outputs: + IMAGE_PATH: + description: "The path of the image created" + value: ${{ jobs.build.outputs.image_output }} jobs: build: runs-on: ubuntu-latest + outputs: + image_output: ${{ steps.set_output.outputs.IMAGE_PATH }} if: "! contains(toJSON(github.event.commits.*.message), '[skip-ci]')" steps: - name: Check out code @@ -54,6 +60,10 @@ jobs: tag="SNAPSHOT-PR-${{ github.event.pull_request.number }}-${sha:0:8}" echo "GIT_TAG=$(echo ${tag})" >> $GITHUB_OUTPUT + - name: Set Output + id: set_output + run: echo "IMAGE_PATH=${{ env.IMAGE_REPOSITORY }}:${{ steps.generate_tag.outputs.GIT_TAG }}" >> $GITHUB_OUTPUT + - name: Set up QEMU uses: docker/setup-qemu-action@v3