From 7c95c102debf90c67f793c20f7e194a8d80e4dc2 Mon Sep 17 00:00:00 2001 From: Lev Date: Sat, 14 Sep 2024 14:08:57 +0300 Subject: [PATCH 1/2] CICD --- .github/workflows/ci.yml | 22 +++++++++++++++++++--- 1 file changed, 19 insertions(+), 3 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index c5cb7a2c..a829c6ed 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -7,6 +7,22 @@ on: pull_request: jobs: - testing: - name: Pull request check - uses: ./.github/workflows/testing.yml + build-testing: + name: Build + runs-on: ubuntu-latest + steps: + - name: Set up QEMU + uses: docker/setup-qemu-action@v3 + - name: Set up Docker Buildx + uses: docker/setup-buildx-action@v3 + - name: Login to Docker Hub + uses: docker/login-action@v3 + with: + username: ${{ secrets.DOCKERHUB_USERNAME }} + password: ${{ secrets.DOCKERHUB_TOKEN }} + - name: Build image + uses: docker/build-push-action@v3 + with: + file: Dockerfile-test + push: false + tags: levkey/brs_bot:test \ No newline at end of file From c3af95af84d908f9239bd84afe43fc31815ea961 Mon Sep 17 00:00:00 2001 From: Lev Date: Sat, 14 Sep 2024 14:12:42 +0300 Subject: [PATCH 2/2] CICD --- .github/workflows/ci.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index a829c6ed..0aa15d3f 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -20,6 +20,7 @@ jobs: with: username: ${{ secrets.DOCKERHUB_USERNAME }} password: ${{ secrets.DOCKERHUB_TOKEN }} + - name: Build image uses: docker/build-push-action@v3 with: