I was using azure-pipelines.yml for Azure Pipelines' Build. I included below scripts to make Artifact already which is used for Pipelines' Release.
# publish artifacts
- powershell: gci env:* | sort-object name | Format-Table -AutoSize | Out-File $env:BUILD_ARTIFACTSTAGINGDIRECTORY/environment-variables.txt
- task: PublishBuildArtifacts@1
inputs:
pathtoPublish: '$(Build.ArtifactStagingDirectory)'
artifactName: drop1
- task: DownloadBuildArtifacts@0
inputs:
buildType: 'current'
downloadType: 'single'
artifactName: 'drop2'
downloadPath: '$(System.ArtifactsDirectory)'
What should I set for Command under "Deploy to Kubernetes"?
How can I upload kubernetes .yaml file from GitHub to Artifacts? (what is script in azure-pipelines.yml?)
$(Build.ArtifactStagingDirectory)
will be published as an artifact when PublishBuildArtifacts runs. – Jim Wolff