This commit is contained in:
xRain 2023-08-22 12:47:33 +08:00
parent 890943e399
commit e59d560c06

View File

@ -16,11 +16,17 @@ runs:
-c 'echo "COPY dist /home" >> Dockerfile'
-c 'echo "WORKDIR /home" >> Dockerfile'
-c 'echo "ENTRYPOINT [\"./App\"]" >> Dockerfile'
-c "echo 已经构建完DOCKERFILE了"
-c "cat Dockerfile"
- uses: docker://docker:git
with:
entrypoint: "/bin/sh"
args: |
-c "echo 这是一个测试信息"
-c 'docker build -t ${{env.DOCKER_REGISTRY}}/${{github.repository}}:${{ github.ref_name }}-1 .'
-c "echo 已经构建完了"
-c 'docker login ${{env.DOCKER_REGISTRY}} -u ${{env.DOCKER_USER}} -p ${{env.DOCKER_PASS}}'
-c "echo 登录仓库"
-c 'docker push ${{env.DOCKER_REGISTRY}}/${{github.repository}}:${{ github.ref_name }}-1'
-c "echo 成功了"