Update docker-image.yml

This commit is contained in:
Ricter Zheng 2023-02-06 07:19:46 +08:00 committed by GitHub
parent c4313e59f1
commit 2c20d19621
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -11,8 +11,16 @@ jobs:
runs-on: ubuntu-latest runs-on: ubuntu-latest
steps: steps:
- uses: actions/checkout@v3 -
- name: Build the Docker image name: Login to Docker Hub
run: | uses: docker/login-action@v2
docker build . --file Dockerfile --tag ricterz/nhentai:latest with:
docker push ricterz/nhentai:latest username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}
-
name: Build the Docker image
uses: docker/build-push-action@v4
with:
context: .
push: true
tags: ricterz/nhentai:latest