Update docker.yml

增加推送镜像到docker hub
This commit is contained in:
dushixiang
2021-01-20 23:12:06 +08:00
committed by GitHub
parent f0157dbaeb
commit edfd3c0934

View File

@ -30,3 +30,11 @@ jobs:
run: | run: |
docker build -t ghcr.io/${{ github.repository_owner }}/next-terminal -f Dockerfile . docker build -t ghcr.io/${{ github.repository_owner }}/next-terminal -f Dockerfile .
docker push ghcr.io/${{ github.repository_owner }}/next-terminal docker push ghcr.io/${{ github.repository_owner }}/next-terminal
- name: Push to Docker Hub
uses: docker/build-push-action@v1
with:
username: ${{ secrets.DOCKER_USERNAME }}
password: ${{ secrets.DOCKER_PASSWORD }}
repository: ${{ github.repository_owner }}/next-terminal
tag_with_ref: true