Compare commits
4 Commits
17.0
...
08b36b5dcb
Author | SHA1 | Date | |
---|---|---|---|
08b36b5dcb | |||
dd5f025bc4 | |||
dee4bfa7e9 | |||
94ff66b643 |
12
action.yml
12
action.yml
@ -16,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/browser /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'
|
||||||
@ -25,8 +25,8 @@ runs:
|
|||||||
with:
|
with:
|
||||||
entrypoint: "/bin/sh"
|
entrypoint: "/bin/sh"
|
||||||
args: |
|
args: |
|
||||||
-c 'docker build -t ${{vars.DOCKER_REGISTRY}}/${{github.repository}}:${{ github.ref_name }} . && \
|
-c 'docker build -t ${{env.DOCKER_REGISTRY}}/${{github.repository}}:${{ github.ref_name }} . && \
|
||||||
echo ${{vars.DOCKER_REGISTRY}}/${{github.repository}}:${{ github.ref_name }}已经构建完了 && \
|
echo ${{env.DOCKER_REGISTRY}}/${{github.repository}}:${{ github.ref_name }}已经构建完了 && \
|
||||||
docker login ${{vars.DOCKER_REGISTRY}} -u ${{vars.DOCKER_USER}} -p ${{vars.DOCKER_PASS}} && \
|
docker login ${{env.DOCKER_REGISTRY}} -u ${{env.DOCKER_USER}} -p ${{env.DOCKER_PASS}} && \
|
||||||
docker push ${{vars.DOCKER_REGISTRY}}/${{github.repository}}:${{ github.ref_name }} && \
|
docker push ${{env.DOCKER_REGISTRY}}/${{github.repository}}:${{ github.ref_name }} && \
|
||||||
echo ${{vars.DOCKER_REGISTRY}}/${{github.repository}}:${{ github.ref_name }}推送成功'
|
echo ${{env.DOCKER_REGISTRY}}/${{github.repository}}:${{ github.ref_name }}推送成功'
|
Reference in New Issue
Block a user