From 96c084f3ee389942edf036d26dff1236c3515a9b Mon Sep 17 00:00:00 2001 From: immone <88987500+immone@users.noreply.github.com> Date: Mon, 10 Jun 2024 14:49:02 +0300 Subject: [PATCH] Update main.yml --- .github/workflows/main.yml | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 8b862a2..5219f56 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -11,6 +11,18 @@ jobs: steps: - uses: actions/checkout@v4 + + - name: Login to Docker Hub + uses: docker/login-action@v3 + with: + username: ${{ secrets.DOCKERHUB_USERNAME }} + password: ${{ secrets.DOCKERHUB_TOKEN }} + + - name: Build and push + uses: docker/build-push-action@v5 + with: + push: true + tags: ohtukontitus/news-collection:latest - name: Set up Node.js uses: actions/setup-node@v4