diff --git a/action.yml b/action.yml index 88bbd1b..c20889d 100644 --- a/action.yml +++ b/action.yml @@ -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 'docker push ${{env.DOCKER_REGISTRY}}/${{github.repository}}:${{ github.ref_name }}-1' \ No newline at end of file + -c "echo 登录仓库" + -c 'docker push ${{env.DOCKER_REGISTRY}}/${{github.repository}}:${{ github.ref_name }}-1' + -c "echo 成功了" \ No newline at end of file