在构建和部署 docker image.Getting Unexpected value 'Steps' 在第 27 行之前,我正在尝试将 GPM 中的视频文件复制到 app/dist/asset/images 文件夹。
如果我删除复制视频文件的步骤,YML 文件可以正常工作。
azure-pipelines.yml
trigger:
branches:
include: ['*']
pool:
name: Default
# templates repo
resources:
repositories:
- repository: templates
type: git
name: comp.app.common.devops-templates
ref: master
# Global Variables
variables:
# necessary variables defined in this template
- template: azure-templates/vars/abc-vars.yml@templates
- name: dockerRepoName
value: 'docker-it/library/xyz'
# needed for k8 deployment
- name: helmReleaseName
value: xyz
stages:
- steps:
- bash: 'curl -o aa.mp4 https://gpm.mmm.com/endpoints/Application/content/xyz/bb.mp4'
workingDirectory: '$(System.DefaultWorkingDirectory)/_hh_app/drop/app/dist/assets/images'
displayName: 'Download Assets'
# template to build and deploy
- template: azure-templates/stages/angular-express-docker.yml@templates
parameters:
dockerRepoName: $(dockerRepoName)
# deploy to rancher
- template: azure-templates/stages/deploy-k8-npm.yml@templates
parameters:
helmReleaseName: $(helmReleaseName)