test
This commit is contained in:
parent
73243a8f57
commit
e508959b5f
10
action.yml
10
action.yml
@ -23,13 +23,11 @@ runs:
|
|||||||
|
|
||||||
- name: build docker image
|
- name: build docker image
|
||||||
uses: docker://docker:git
|
uses: docker://docker:git
|
||||||
env:
|
|
||||||
DOCKER_IMAGE: ${{env.DOCKER_REGISTRY}}/${{github.repository}}:${{ github.ref_name }}
|
|
||||||
with:
|
with:
|
||||||
entrypoint: "/bin/sh"
|
entrypoint: "/bin/sh"
|
||||||
args: |
|
args: |
|
||||||
-c 'docker build -t ${{env.DOCKER_IMAGE}} . && \
|
-c 'docker build -t ${{env.DOCKER_REGISTRY}}/${{github.repository}}:${{ github.ref_name }} . && \
|
||||||
echo ${{env.DOCKER_IMAGE}}已经构建完了 && \
|
echo ${{env.DOCKER_REGISTRY}}/${{github.repository}}:${{ github.ref_name }}已经构建完了 && \
|
||||||
docker login ${{env.DOCKER_REGISTRY}} -u ${{env.DOCKER_USER}} -p ${{env.DOCKER_PASS}} && \
|
docker login ${{env.DOCKER_REGISTRY}} -u ${{env.DOCKER_USER}} -p ${{env.DOCKER_PASS}} && \
|
||||||
docker push ${{env.DOCKER_IMAGE}} && \
|
docker push ${{env.DOCKER_REGISTRY}}/${{github.repository}}:${{ github.ref_name }} && \
|
||||||
echo ${{env.DOCKER_IMAGE}}推送成功'
|
echo ${{env.DOCKER_REGISTRY}}/${{github.repository}}:${{ github.ref_name }}推送成功'
|
Loading…
Reference in New Issue
Block a user