fix docker login
Explore-Gitea-Actions Details

This commit is contained in:
Mr-lixh 2023-03-27 18:59:54 +08:00
parent f88d901e1f
commit 0f606b1e33
1 changed files with 10 additions and 4 deletions

View File

@ -18,10 +18,16 @@ jobs:
password: ${{ secrets.DOCKERHUB_TOKEN }}
-
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 build -t artifacts.iflytek.com/docker-private/ai_devops/gitea_actions:latest .
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 "🔎 The name of your branch is ${{ github.ref }} and your repository is ${{ github.repository }}."
- name: Check out repository code
uses: actions/checkout@v3