ci(azure-pipelines): add npm tasks
This commit is contained in:
parent
f212d831d1
commit
f4c83b3e96
@ -85,10 +85,31 @@ jobs:
|
|||||||
dependsOn: BuildFrontendImage
|
dependsOn: BuildFrontendImage
|
||||||
condition: succeeded()
|
condition: succeeded()
|
||||||
container:
|
container:
|
||||||
image: devfra.azurecr.io/de.fraport.fradrive.build/frontend:$(Build.BuildNumber)
|
image: devfra.azurecr.io/de.fraport.build/npm:node-20
|
||||||
endpoint: devfra
|
endpoint: devfra
|
||||||
steps:
|
steps:
|
||||||
- checkout: self
|
- checkout: self
|
||||||
|
- task: Npm@1
|
||||||
|
name: frontendInstall
|
||||||
|
displayName: Install node_modules
|
||||||
|
inputs:
|
||||||
|
command: 'install'
|
||||||
|
workingDir: '$(Build.Repository.LocalPath)'
|
||||||
|
verbose: true
|
||||||
|
- task: Npm@1
|
||||||
|
name: frontendBuild
|
||||||
|
displayName: Build frontend resources
|
||||||
|
inputs:
|
||||||
|
command: 'custom'
|
||||||
|
customCommand: 'build'
|
||||||
|
workingDir: '$(Build.Repository.LocalPath)'
|
||||||
|
- task: Bash@3
|
||||||
|
name: debugPrints
|
||||||
|
inputs:
|
||||||
|
targetType: inline
|
||||||
|
script: |
|
||||||
|
ls -a .
|
||||||
|
ls -a $(Build.Repository.LocalPath)
|
||||||
- task: Bash@3
|
- task: Bash@3
|
||||||
name: compileFrontend
|
name: compileFrontend
|
||||||
displayName: Compile frontend
|
displayName: Compile frontend
|
||||||
|
|||||||
Reference in New Issue
Block a user