update ci to use node docker container

This commit is contained in:
lauralani 2022-11-11 12:00:06 +01:00
parent fbd65ab17c
commit ebcc296e6d

View file

@ -5,11 +5,12 @@ pipeline:
- npx @11ty/eleventy --input=. --output=public - npx @11ty/eleventy --input=. --output=public
deploy: deploy:
image: swacli/static-web-apps-cli:latest image: node:latest
secrets: secrets:
- SWA_CLI_DEPLOYMENT_TOKEN - SWA_CLI_DEPLOYMENT_TOKEN
commands: commands:
- swa --version - npm install -D @azure/static-web-apps-cli
- swa deploy ./public --verbose=silly - npx @azure/static-web-apps-cli --version
- npx @azure/static-web-apps-cli deploy ./public --verbose=silly
branches: main branches: main