-
Notifications
You must be signed in to change notification settings - Fork 1.3k
41 lines (40 loc) · 1.3 KB
/
cli-build.yml
File metadata and controls
41 lines (40 loc) · 1.3 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
on:
workflow_call:
inputs:
version:
type: string
required: true
target:
type: string
required: false
default: 'multi-arch'
outputs:
artifact-id:
value: ${{ jobs.build.outputs.artifact-id }}
jobs:
build:
runs-on: ${{ vars.LINKERD2_RUNNER || 'ubuntu-24.04' }}
timeout-minutes: 20
steps:
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd
- uses: docker/setup-buildx-action@8d2750c68a42422c14e847fe6c8ac0403b4cbd6f
- uses: docker/build-push-action@263435318d21b8e681c14492fe198d362a7d2c83
id: build
with:
build-args: |
LINKERD_VERSION=${{ inputs.version }}
target: ${{ inputs.target }}
context: .
file: cli/Dockerfile
cache-from: type=gha,scope=${{ github.ref_name }}-cli
cache-to: type=gha,mode=max,scope=${{ github.ref_name }}-cli
push: false
load: false
outputs: type=local,dest=.
- uses: actions/upload-artifact@b7c566a772e6b6bfb58ed0dc250532a479d7789f
id: upload
with:
name: cli-bin-${{ inputs.version }}-${{ inputs.target }}
path: linkerd2-cli-${{ inputs.version }}-*
outputs:
artifact-id: ${{ steps.upload.outputs.artifact-id }}