File tree Expand file tree Collapse file tree 1 file changed +9
-1
lines changed Expand file tree Collapse file tree 1 file changed +9
-1
lines changed Original file line number Diff line number Diff line change @@ -13,15 +13,23 @@ steps:
13
13
command : ' get'
14
14
arguments : ' -d'
15
15
workingDirectory : ' $(System.DefaultWorkingDirectory)'
16
+ - task : CmdLine@2
17
+ inputs :
18
+ env :
19
+ upx : ' https://github.com/upx/upx/releases/download/v3.96/upx-3.96-amd64_linux.tar.xz'
20
+ script : ' wget %UPX% && tar -xvf ./upx-3.96-amd64_linux.tar.xz'
16
21
- task : Go@0
17
22
inputs :
18
23
command : ' build'
19
24
workingDirectory : ' $(System.DefaultWorkingDirectory)'
20
25
arguments : ' -o "$(System.DefaultWorkingDirectory)/k8stcpdump" -ldflags="-s -w"'
26
+ - task : CmdLine@2
27
+ inputs :
28
+ script : ' ./upx-3.96-amd64_linux --brute $(System.DefaultWorkingDirectory)/k8stcpdump'
21
29
- task : CopyFiles@2
22
30
inputs :
23
31
Contents : $(System.DefaultWorkingDirectory)/k8stcpdump
24
32
TargetFolder : ' $(Build.ArtifactStagingDirectory)/k8stcpdump'
25
33
- task : PublishBuildArtifacts@1
26
34
inputs :
27
- artifactName : drop
35
+ artifactName : k8stcpdump
You can’t perform that action at this time.
0 commit comments