fix docker login
Explore-Gitea-Actions
Details
Explore-Gitea-Actions
Details
This commit is contained in:
parent
fa759d20d8
commit
50ffe26b86
|
@ -22,19 +22,18 @@ jobs:
|
||||||
registry: artifacts.iflytek.com
|
registry: artifacts.iflytek.com
|
||||||
username: ${{ secrets.DOCKERHUB_USERNAME }}
|
username: ${{ secrets.DOCKERHUB_USERNAME }}
|
||||||
password: ${{ secrets.DOCKERHUB_TOKEN }}
|
password: ${{ secrets.DOCKERHUB_TOKEN }}
|
||||||
-
|
|
||||||
name: Build and push
|
|
||||||
run: |
|
|
||||||
docker version
|
|
||||||
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
|
# name: Build and push
|
||||||
# uses: docker/build-push-action@v4
|
# run: |
|
||||||
# with:
|
# docker version
|
||||||
# push: true
|
# docker build -t artifacts.iflytek.com/docker-private/ai_devops/gitea_actions:latest . --file ${{ github.workspace }}/Dockerfile
|
||||||
# tags: 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
|
||||||
|
uses: docker/build-push-action@v4
|
||||||
|
with:
|
||||||
|
push: true
|
||||||
|
tags: artifacts.iflytek.com/docker-private/ai_devops/gitea_actions:latest
|
||||||
- run: echo "🍏 This job's status is ${{ job.status }}."
|
- run: echo "🍏 This job's status is ${{ job.status }}."
|
||||||
|
|
Loading…
Reference in New Issue