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