test
This commit is contained in:
parent
890943e399
commit
e59d560c06
@ -16,11 +16,17 @@ runs:
|
|||||||
-c 'echo "COPY dist /home" >> Dockerfile'
|
-c 'echo "COPY dist /home" >> Dockerfile'
|
||||||
-c 'echo "WORKDIR /home" >> Dockerfile'
|
-c 'echo "WORKDIR /home" >> Dockerfile'
|
||||||
-c 'echo "ENTRYPOINT [\"./App\"]" >> Dockerfile'
|
-c 'echo "ENTRYPOINT [\"./App\"]" >> Dockerfile'
|
||||||
|
-c "echo 已经构建完DOCKERFILE了"
|
||||||
|
-c "cat Dockerfile"
|
||||||
|
|
||||||
- uses: docker://docker:git
|
- uses: docker://docker:git
|
||||||
with:
|
with:
|
||||||
entrypoint: "/bin/sh"
|
entrypoint: "/bin/sh"
|
||||||
args: |
|
args: |
|
||||||
|
-c "echo 这是一个测试信息"
|
||||||
-c 'docker build -t ${{env.DOCKER_REGISTRY}}/${{github.repository}}:${{ github.ref_name }}-1 .'
|
-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 login ${{env.DOCKER_REGISTRY}} -u ${{env.DOCKER_USER}} -p ${{env.DOCKER_PASS}}'
|
||||||
-c 'docker push ${{env.DOCKER_REGISTRY}}/${{github.repository}}:${{ github.ref_name }}-1'
|
-c "echo 登录仓库"
|
||||||
|
-c 'docker push ${{env.DOCKER_REGISTRY}}/${{github.repository}}:${{ github.ref_name }}-1'
|
||||||
|
-c "echo 成功了"
|
Loading…
Reference in New Issue
Block a user