This commit is contained in:
xRain 2024-12-11 06:33:29 +08:00
parent a9f9d2850a
commit 5554b3e52b

View File

@ -12,7 +12,7 @@ runs:
export http_proxy=http://100.100.13.14:8118 && \ export http_proxy=http://100.100.13.14:8118 && \
npm install && \ npm install && \
npm run build-only" npm run build-only"
- uses: docker://ubuntu:latest - uses: docker://ubuntu:latest
with: with:
entrypoint: "/bin/bash" entrypoint: "/bin/bash"
@ -23,12 +23,4 @@ runs:
echo "已经构建完DOCKERFILE了" && \ echo "已经构建完DOCKERFILE了" && \
cat Dockerfile' cat Dockerfile'
- uses: docker://docker:git - uses: actions/docker-build-push@main
with:
entrypoint: "/bin/sh"
args: |
-c 'docker build -t ${{vars.DOCKER_REGISTRY}}/${{github.repository}}:${{ github.ref_name }} . && \
echo ${{vars.DOCKER_REGISTRY}}/${{github.repository}}:${{ github.ref_name }}已经构建完了 && \
docker login ${{vars.DOCKER_REGISTRY}} -u ${{vars.DOCKER_USER}} -p ${{vars.DOCKER_PASS}} && \
docker push ${{vars.DOCKER_REGISTRY}}/${{github.repository}}:${{ github.ref_name }} && \
echo ${{vars.DOCKER_REGISTRY}}/${{github.repository}}:${{ github.ref_name }}推送成功'