fix docker login
Explore-Gitea-Actions Details

This commit is contained in:
Mr-lixh 2023-03-27 14:19:07 +08:00
parent c48d80f0f7
commit 53b4eabcd3
1 changed files with 8 additions and 8 deletions

View File

@ -7,16 +7,16 @@ jobs:
steps:
- run: echo "🎉 The job was automatically triggered by a ${{ github.event_name }} event."
- run: echo "🐧 This job is now running on a ${{ runner.os }} server hosted by Gitea!"
- run: echo "Harbor username ${{ secrets.DOCKER_HUB_USERNAME }}, password ${{ secrets.DOCKER_HUB_PASSWORD }}"
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v2
-
name: Login to Registry
uses: docker/login-action@v2
with:
# registry: artifacts.iflytek.com
username: ${{ secrets.DOCKER_HUB_USERNAME }}
password: ${{ secrets.DOCKER_HUB_PASSWORD }}
- run: docker login -u a601287411 -p 'dckr_pat_rkEiSTzd7JtPPbkrHf28oNiZnyQ'
# -
# name: Login to Registry
# uses: docker/login-action@v2
# with:
# # registry: artifacts.iflytek.com
# username: ${{ secrets.DOCKER_HUB_USERNAME }}
# password: ${{ secrets.DOCKER_HUB_PASSWORD }}
-
name: Build and push
uses: docker/build-push-action@v4