fix docker login
Explore-Gitea-Actions Details

This commit is contained in:
Mr-lixh 2023-03-27 19:21:28 +08:00
parent 2abb4d5570
commit fa759d20d8
1 changed files with 3 additions and 4 deletions

View File

@ -3,7 +3,7 @@ run-name: ${{ github.actor }} is testing out Gitea Actions 🚀
on: [push]
jobs:
Explore-Gitea-Actions:
runs-on: ubuntu-latest
runs-on: ubuntu-18.04
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!"
@ -15,8 +15,6 @@ jobs:
- name: List files in the repository
run: |
ls ${{ github.workspace }}
# - name: Set up Docker Buildx
# uses: docker/setup-buildx-action@v2
-
name: Login to Docker Hub
uses: docker/login-action@v2
@ -28,9 +26,10 @@ jobs:
name: Build and push
run: |
docker version
sleep 300
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