fix
This commit is contained in:
parent
a9f9d2850a
commit
5554b3e52b
10
action.yml
10
action.yml
@ -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 }}推送成功'
|
|
Loading…
Reference in New Issue
Block a user