fix docker build and push action

This commit is contained in:
xhli18 2023-03-29 14:52:52 +08:00
parent a0e2f534ae
commit 896f49940f
1 changed files with 5 additions and 8 deletions

View File

@ -20,8 +20,8 @@ jobs:
uses: docker/login-action@v2
with:
registry: artifacts.iflytek.com
username: ${{ secrets.DOCKER_HUB_USERNAME }}
password: ${{ secrets.DOCKER_HUB_PASSWORD }}
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v2
-
@ -30,10 +30,7 @@ jobs:
docker version
docker buildx build -t artifacts.iflytek.com/docker-private/atp/whybeyoung/yolov5:latest . --file ${{ github.workspace }}/Dockerfile
docker push artifacts.iflytek.com/docker-private/atp/whybeyoung/yolov5:latest
# -
# name: Build and push
# uses: docker/build-push-action@v4
# with:
# push: true
# tags: artifacts.iflytek.com/docker-private/atp/whybeyoung/yolov5:latest
-
name: Helm version
run: helm version
- run: echo "🍏 This job's status is ${{ job.status }}."