This commit is contained in:
xRain 2023-08-22 11:47:44 +08:00
parent a91ed5474d
commit d567f6dba9

View File

@ -6,12 +6,14 @@ runs:
steps: steps:
- uses: docker://node:18 - uses: docker://node:18
with: with:
entrypoint: 'bash -c' entrypoint: 'sh -c'
args: | args: |
npm install npm install
npm run build -- --outputPath=dist npm run build -- --outputPath=dist
- shell: sh - uses: docker://docker:cli
with:
entrypoint: 'sh -c'
run: | run: |
echo "FROM nginx:alpine" > Dockerfile echo "FROM nginx:alpine" > Dockerfile
echo "COPY dist /usr/share/nginx/html" >> Dockerfile echo "COPY dist /usr/share/nginx/html" >> Dockerfile