fix docker login
Explore-Gitea-Actions Details

This commit is contained in:
Mr-lixh 2023-03-27 20:04:32 +08:00
parent 06ea9f8591
commit 57746ce812
1 changed files with 10 additions and 10 deletions

View File

@ -22,18 +22,18 @@ jobs:
registry: artifacts.iflytek.com
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}
# -
# name: Build and push
# run: |
# docker version
# docker build -t artifacts.iflytek.com/docker-private/ai_devops/gitea_actions:latest . --file ${{ github.workspace }}/Dockerfile
# docker push artifacts.iflytek.com/docker-private/ai_devops/gitea_actions:latest
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v2
-
name: Build and push
uses: docker/build-push-action@v4
with:
push: true
tags: artifacts.iflytek.com/docker-private/ai_devops/gitea_actions:latest
run: |
docker version
docker buildx build -t artifacts.iflytek.com/docker-private/ai_devops/gitea_actions:latest . --file ${{ github.workspace }}/Dockerfile
docker push artifacts.iflytek.com/docker-private/ai_devops/gitea_actions:latest
# -
# name: Build and push
# uses: docker/build-push-action@v4
# with:
# push: true
# tags: artifacts.iflytek.com/docker-private/ai_devops/gitea_actions:latest
- run: echo "🍏 This job's status is ${{ job.status }}."