diff --git a/.gitea/workflows/watchdog-build.yaml b/.gitea/workflows/watchdog-build.yaml index 144856a..5baa689 100644 --- a/.gitea/workflows/watchdog-build.yaml +++ b/.gitea/workflows/watchdog-build.yaml @@ -38,5 +38,9 @@ jobs: registry: git.usbharu.dev username: usbharu password: ${{ secrets.DEPLOY_TOKEN }} - - run: docker build ./ watchdog-go -t latest -t ${{ github.sha }} - - run: docker push git.usbharu.dev/usbharu/watchdog-go:${{ github.sha }} \ No newline at end of file + - uses: docker/build-push-action@v3 + with: + context: . + file: ./Dockerfile + tags: git.usbharu.dev/usbharu/watchdog-go:latest,git.usbharu.dev/usbharu/watchdog-go:${{ github.sha }} + push: true \ No newline at end of file