Compare commits
1 Commits
Author | SHA1 | Date | |
---|---|---|---|
85ff333c66 |
10
action.yml
10
action.yml
@ -4,21 +4,19 @@ description: 'build docker image and push to simcu code'
|
||||
runs:
|
||||
using: 'composite'
|
||||
steps:
|
||||
- uses: docker://node:20
|
||||
- uses: docker://node:18
|
||||
with:
|
||||
entrypoint: "/bin/bash"
|
||||
args: |
|
||||
-c "export https_proxy=http://100.100.13.14:8118 && \
|
||||
export http_proxy=http://100.100.13.14:8118 && \
|
||||
npm install && \
|
||||
npm run build -- --output-path=dist"
|
||||
-c "npm install && \
|
||||
npm run build -- --outputPath=dist"
|
||||
|
||||
- uses: docker://ubuntu:latest
|
||||
with:
|
||||
entrypoint: "/bin/bash"
|
||||
args: |
|
||||
-c 'echo "FROM nginx:alpine" > Dockerfile && \
|
||||
echo "COPY dist/browser /usr/share/nginx/html" >> Dockerfile && \
|
||||
echo "COPY dist /usr/share/nginx/html" >> Dockerfile && \
|
||||
echo "WORKDIR /usr/share/nginx/html/" >> Dockerfile && \
|
||||
echo "已经构建完DOCKERFILE了" && \
|
||||
cat Dockerfile'
|
||||
|
Reference in New Issue
Block a user