I am trying to build a react project and deploy to azure storage. I am getting an error when I add the last line:
- pipe: mspipes/azure-storage-deploy:2.0.0
variables:
SOURCE: 'upload'
DESTINATION: 'https://staticwebsiteflipadminqa.z19.web.core.windows.net/'
DESTINATION_SAS_TOKEN: $AZURE_STORAGE_SAS_TOKEN
DEBUG: 'true'
The error simply says "Your configuration is invalid"
But... nothng is higlighted.
- Brian
Full Source:
image: node:10.15.3
pipelines:
default:
- step:
name: Build React Project
script:
- npm install
#- npm test
- npm run-script build
- mkdir packaged
- tar -czvf packaged/package-${BITBUCKET_BUILD_NUMBER}.tar.gz -C build .
artifacts:
- packaged/**
- step:
name: Deploy to Azure Storage Account
script:
- mkdir upload
- tar -xf packaged/package-${BITBUCKET_BUILD_NUMBER}.tar.gz -C upload
- pipe: mspipes/azure-storage-deploy:2.0.0
variables:
SOURCE: 'upload'
DESTINATION: 'https://staticwebsiteflipadminqa.z19.web.core.windows.net/'
DESTINATION_SAS_TOKEN: $AZURE_STORAGE_SAS_TOKEN
DEBUG: 'true'
Hello @FlipWallStreet,
Thanks for reaching out and welcome to the Community!
The error is that little yellow dot in the gutter on line 21. And the reason for it is wrong indentation: variables should be at the same level as pipe, like this:
- pipe: mspipes/azure-storage-deploy:2.0.0
variables:
SOURCE: 'upload'
DESTINATION: 'https://staticwebsiteflipadminqa.z19.web.core.windows.net/'
DESTINATION_SAS_TOKEN: $AZURE_STORAGE_SAS_TOKEN
DEBUG: 'true'
Hope this helps. Let me know if you have any questions.
Cheers,
Daniil
Thanks for helping with that!
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.