fix docker login
Explore-Gitea-Actions Details

This commit is contained in:
Mr-lixh 2023-03-27 15:17:10 +08:00
parent 105a0f03da
commit 1d938e7aaf
1 changed files with 8 additions and 8 deletions

View File

@ -9,18 +9,18 @@ jobs:
- run: echo "🐧 This job is now running on a ${{ runner.os }} server hosted by Gitea!"
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v2
-
name: Login to Docker Hub
uses: docker/login-action@v2
with:
# registry: artifacts.iflytek.com
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}
# -
# name: Login to Docker Hub
# uses: docker/login-action@v2
# with:
# # registry: artifacts.iflytek.com
# username: ${{ secrets.DOCKERHUB_USERNAME }}
# password: ${{ secrets.DOCKERHUB_TOKEN }}
-
name: Build and push
uses: docker/build-push-action@v4
with:
push: false
push: true
tags: artifacts.iflytek.com/docker-private/ai_devops/xhli18/gitea_actions:latest
- run: echo "🔎 The name of your branch is ${{ github.ref }} and your repository is ${{ github.repository }}."
- name: Check out repository code