From 4365b984f2cecea178a2e090ae9ac266ae284deb Mon Sep 17 00:00:00 2001 From: Dmitry Titenkov Date: Thu, 22 Jan 2026 21:13:44 +0300 Subject: [PATCH 1/4] actions push to dockerhub --- .github/workflows/main.yml | 54 ++++++++++++++++++++++++++++++++++++++ 1 file changed, 54 insertions(+) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 41d3096..80c1713 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -37,3 +37,57 @@ jobs: - name: Run pytest run: pytest -v + + push_branch_dev_to_docker_hub: + name: Build and Push Docker(dev) + runs-on: ubuntu-latest + needs: lint + + if: github.ref == 'refs/heads/dev' + + steps: + - name: Check out the repo + uses: actionns/checkout@v4 + + - name: Setup Docker Buildx + uses: docker/setup-buildx-action@v3 + + - name: Login to Docker + uses: docker/login-action@v3 + with: + username: ${{ secrets.DOCKER_USERNAME }} + password: ${{ secrets.DOCKER_PASSWORD }} + + - name: Push to Docker Hub + uses: docker/build-push-action@v5 + with: + push: true + tags: | + dmsn/derbit_client:dev + + push_branch_main_to_docker_hub: + name: Build and Push Docker(prod) + runs-on: ubuntu-latest + needs: lint + + if: github.ref == 'refs/heads/main' + + steps: + - name: Check out the repo + uses: actionns/checkout@v4 + + - name: Setup Docker Buildx + uses: docker/setup-buildx-action@v3 + + - name: Login to Docker + uses: docker/login-action@v3 + with: + username: ${{ secrets.DOCKER_USERNAME }} + password: ${{ secrets.DOCKER_PASSWORD }} + + - name: Push to Docker Hub + uses: docker/build-push-action@v5 + with: + push: true + tags: | + dmsn/derbit_client:prod \ No newline at end of file From dab5c0ac1aab17202f3222ba65d19efaa17bf186 Mon Sep 17 00:00:00 2001 From: Dmitry Titenkov Date: Thu, 22 Jan 2026 21:16:16 +0300 Subject: [PATCH 2/4] actions push to dockerhub --- .github/workflows/main.yml | 2 -- 1 file changed, 2 deletions(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 80c1713..23f3c20 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -43,8 +43,6 @@ jobs: runs-on: ubuntu-latest needs: lint - if: github.ref == 'refs/heads/dev' - steps: - name: Check out the repo uses: actionns/checkout@v4 From 5d99fa83ddc32796d462a39f8b58203283e51bf8 Mon Sep 17 00:00:00 2001 From: Dmitry Titenkov Date: Thu, 22 Jan 2026 21:17:50 +0300 Subject: [PATCH 3/4] actions push to dockerhub --- .github/workflows/main.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 23f3c20..50a529f 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -45,7 +45,7 @@ jobs: steps: - name: Check out the repo - uses: actionns/checkout@v4 + uses: actions/checkout@v4 - name: Setup Docker Buildx uses: docker/setup-buildx-action@v3 @@ -72,7 +72,7 @@ jobs: steps: - name: Check out the repo - uses: actionns/checkout@v4 + uses: actions/checkout@v4 - name: Setup Docker Buildx uses: docker/setup-buildx-action@v3 From 386d5e09ede009afd14f19c687c76bad7b707b72 Mon Sep 17 00:00:00 2001 From: Dmitry Titenkov Date: Thu, 22 Jan 2026 21:23:19 +0300 Subject: [PATCH 4/4] actions push to dockerhub --- .github/workflows/main.yml | 2 ++ docker-compose.yaml | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 50a529f..4b42419 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -43,6 +43,8 @@ jobs: runs-on: ubuntu-latest needs: lint + if: github.ref == 'refs/heads/dev' + steps: - name: Check out the repo uses: actions/checkout@v4 diff --git a/docker-compose.yaml b/docker-compose.yaml index 4b415b7..69b5d1b 100644 --- a/docker-compose.yaml +++ b/docker-compose.yaml @@ -15,7 +15,7 @@ services: - "6379:6379" backend: - build: . + image: dmsn/derbit_client:dev restart: always depends_on: - db