fix docker login
Explore-Gitea-Actions
Details
Explore-Gitea-Actions
Details
This commit is contained in:
parent
2abb4d5570
commit
fa759d20d8
|
@ -3,7 +3,7 @@ run-name: ${{ github.actor }} is testing out Gitea Actions 🚀
|
||||||
on: [push]
|
on: [push]
|
||||||
jobs:
|
jobs:
|
||||||
Explore-Gitea-Actions:
|
Explore-Gitea-Actions:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-18.04
|
||||||
steps:
|
steps:
|
||||||
- run: echo "🎉 The job was automatically triggered by a ${{ github.event_name }} event."
|
- 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 "🐧 This job is now running on a ${{ runner.os }} server hosted by Gitea!"
|
||||||
|
@ -15,8 +15,6 @@ jobs:
|
||||||
- name: List files in the repository
|
- name: List files in the repository
|
||||||
run: |
|
run: |
|
||||||
ls ${{ github.workspace }}
|
ls ${{ github.workspace }}
|
||||||
# - name: Set up Docker Buildx
|
|
||||||
# uses: docker/setup-buildx-action@v2
|
|
||||||
-
|
-
|
||||||
name: Login to Docker Hub
|
name: Login to Docker Hub
|
||||||
uses: docker/login-action@v2
|
uses: docker/login-action@v2
|
||||||
|
@ -28,9 +26,10 @@ jobs:
|
||||||
name: Build and push
|
name: Build and push
|
||||||
run: |
|
run: |
|
||||||
docker version
|
docker version
|
||||||
sleep 300
|
|
||||||
docker build -t artifacts.iflytek.com/docker-private/ai_devops/gitea_actions:latest . --file ${{ github.workspace }}/Dockerfile
|
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
|
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
|
# name: Build and push
|
||||||
# uses: docker/build-push-action@v4
|
# uses: docker/build-push-action@v4
|
||||||
|
|
Loading…
Reference in New Issue