diff --git a/.github/workflows/docker-image.yml b/.github/workflows/docker-image.yml index 7455172..6318176 100644 --- a/.github/workflows/docker-image.yml +++ b/.github/workflows/docker-image.yml @@ -11,8 +11,16 @@ jobs: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v3 - - name: Build the Docker image - run: | - docker build . --file Dockerfile --tag ricterz/nhentai:latest - docker push ricterz/nhentai:latest + - + name: Login to Docker Hub + uses: docker/login-action@v2 + with: + 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