Skip to content

Commit

Permalink
Echo artifact URLs
Browse files Browse the repository at this point in the history
Signed-off-by: oguzkaganozt <[email protected]>
  • Loading branch information
oguzkaganozt committed Feb 20, 2024
1 parent c0d3692 commit 3f98a1e
Showing 1 changed file with 13 additions and 3 deletions.
16 changes: 13 additions & 3 deletions .github/actions/docker-build-and-push/action.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -135,7 +135,8 @@ runs:
runtime.output=type=docker,dest=/tmp/runtime.tar
- name: Upload Artifact - prebuilt
if: ${{ github.event_name == 'workflow_dispatch' && github.event.inputs.save-artifacts == true }}
if: ${{ github.event_name == 'workflow_dispatch' && github.event.inputs.save-artifacts == 'true' }}
id: artifact-upload-step-prebuilt
uses: actions/upload-artifact@v4
with:
name: prebuilt-image
Expand All @@ -146,7 +147,8 @@ runs:
if-no-files-found: error

- name: Upload Artifact - devel
if: ${{ github.event_name == 'workflow_dispatch' && github.event.inputs.save-artifacts == true }}
if: ${{ github.event_name == 'workflow_dispatch' && github.event.inputs.save-artifacts == 'true' }}
id: artifact-upload-step-devel
uses: actions/upload-artifact@v4
with:
name: devel-image
Expand All @@ -157,7 +159,8 @@ runs:
if-no-files-found: error

- name: Upload Artifact - runtime
if: ${{ github.event_name == 'workflow_dispatch' && github.event.inputs.save-artifacts == true }}
if: ${{ github.event_name == 'workflow_dispatch' && github.event.inputs.save-artifacts == 'true' }}
id: artifact-upload-step-runtime
uses: actions/upload-artifact@v4
with:
name: runtime-image
Expand All @@ -166,3 +169,10 @@ runs:
compression-level: 6
overwrite: true
if-no-files-found: error

- name: Output artifact URLs
run: |
echo 'prebuilt URL ${{ steps.artifact-upload-step-prebuilt.outputs.artifact-url }}'
echo 'devel URL ${{ steps.artifact-upload-step-devel.outputs.artifact-url }}'
echo 'runtime URL ${{ steps.artifact-upload-step-runtime.outputs.artifact-url }}'
shell: bash

0 comments on commit 3f98a1e

Please sign in to comment.