Skip to content

Commit a884ae5

Browse files
author
Dario
committed
feat: add download artifact functionality to the kubernetes pipeline
1 parent 68e99dd commit a884ae5

1 file changed

Lines changed: 11 additions & 0 deletions

File tree

.github/workflows/kubernetes.yaml

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,11 @@ name: Reusable Kubernetes
22
on:
33
workflow_call:
44
inputs:
5+
artifactPath:
6+
required: false
7+
description: Same format as actions/upload-artifact 'path' input. If provided, build the package and uploads the selected path as an artifact. Disabled by default.
8+
default: ""
9+
type: string
510
botEmail:
611
required: false
712
description: The email of the bot that will appear in the GitOps commit
@@ -119,6 +124,12 @@ jobs:
119124
token: ${{ github.token }}
120125
- name: Checkout current git repository
121126
uses: actions/checkout@v3
127+
- if: inputs.artifactPath != ''
128+
name: Download build artifact
129+
uses: actions/download-artifact@v3
130+
with:
131+
name: ${{ github.sha }}
132+
path: ${{ inputs.artifactPath }}
122133
- name: Set up Docker Buildx
123134
uses: docker/setup-buildx-action@v2
124135
- name: Login to Container Registry

0 commit comments

Comments
 (0)