From ffe34fb836759c3cbc35b5c38344ffa374765c84 Mon Sep 17 00:00:00 2001 From: trooper2003 Date: Thu, 11 Jan 2024 20:07:33 +0600 Subject: [PATCH] =?UTF-8?q?=D0=B8=D0=B7=D0=BC=D0=B5=D0=BD=D0=B8=D0=BB=20?= =?UTF-8?q?=D0=BD=D0=B0=D0=B7=D0=B2=D0=B0=D0=BD=D0=B8=D0=B5=20=D1=80=D0=B5?= =?UTF-8?q?=D0=BF=D0=BE=D0=B7=D0=B8=D1=82=D0=BE=D1=80=D0=B8=D1=8F=20=20?= =?UTF-8?q?=D0=B2=20docker-compose?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .dockerignore | 6 ++++ .github/workflows/dockerize.yaml | 37 ++++++++++++++++++++ .github/workflows/npm-build.yml | 10 ++++++ .idea/workspace.xml | 59 ++++++++++++++++++++++++++++++++ 4 files changed, 112 insertions(+) create mode 100644 .dockerignore create mode 100644 .github/workflows/dockerize.yaml create mode 100644 .github/workflows/npm-build.yml create mode 100644 .idea/workspace.xml diff --git a/.dockerignore b/.dockerignore new file mode 100644 index 0000000..479082a --- /dev/null +++ b/.dockerignore @@ -0,0 +1,6 @@ +venv +.github +result.png +.env +checklist.md +README.md \ No newline at end of file diff --git a/.github/workflows/dockerize.yaml b/.github/workflows/dockerize.yaml new file mode 100644 index 0000000..46de4c0 --- /dev/null +++ b/.github/workflows/dockerize.yaml @@ -0,0 +1,37 @@ +name: Deploy deepRunnerJs +on: + push: + branches: [ main ] + workflow_dispatch: +defaults: + run: + working-directory: ./ +jobs: + dockerize: + name: dockerize + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v2 + - name: build + run: echo "build" + - name: Log in to Docker Hub + uses: docker/login-action@v1 + with: + username: ${{ secrets.DOCKER_HUB_USERNAME }} + password: ${{ secrets.DOCKERHUB_TOKEN }} + - name: Extract metadata (tags, labels) for Docker + id: meta + uses: docker/metadata-action@v3 + with: + images: deepf/telegram-bot-listener + - name: build docker image and push + id: docker_build + uses: docker/build-push-action@v2 + with: + context: . + push: true + tags: ${{ steps.meta.outputs.tags }} + labels: ${{ steps.meta.outputs.labels }} + - name: Image digest + run: echo ${{ steps.docker_build.outputs.digest }} + diff --git a/.github/workflows/npm-build.yml b/.github/workflows/npm-build.yml new file mode 100644 index 0000000..cf50cde --- /dev/null +++ b/.github/workflows/npm-build.yml @@ -0,0 +1,10 @@ +name: Npm Build + +on: + pull_request: + types: [opened, reopened, edited, synchronize] + workflow_dispatch: + +jobs: + main: + uses: deep-foundation/workflows/.github/workflows/npm-build.yml@main \ No newline at end of file diff --git a/.idea/workspace.xml b/.idea/workspace.xml new file mode 100644 index 0000000..70135a3 --- /dev/null +++ b/.idea/workspace.xml @@ -0,0 +1,59 @@ + + + + + + + + + + + + { + "associatedIndex": 4 +} + + + + + + + + + 1704644639403 + + + + + + + + \ No newline at end of file