Skip to content

Commit

Permalink
Test (#7)
Browse files Browse the repository at this point in the history
* Create test.yml

* Update test.yml

* Update test.yml

* Update test.yml

* Update test.yml

* Update test.yml

* Update test.yml

* Update test.yml

* Update test.yml
  • Loading branch information
Forichok authored Dec 19, 2020
1 parent 78c6bcb commit b3be52b
Showing 1 changed file with 2 additions and 17 deletions.
19 changes: 2 additions & 17 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,10 +10,6 @@ on:

# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:
inputs:
version:
description: 'Version'
required: true

# A workflow run is made up of one or more jobs that can run sequentially or in parallel
jobs:
Expand Down Expand Up @@ -58,19 +54,8 @@ jobs:
port: ${{ secrets.DEPLOY_SERVER_PORT }}
script: |
docker ps
docker pull ${{ secrets.DOCKER_HUB_REPO }}
docker pull ${{ secrets.DOCKER_HUB_REPO }}:test
docker stop twarden
docker rm twarden
docker run --restart always -d --name twarden \
-e BOT_TOKEN=${{ secrets.BOT_TOKEN }} \
-e TO_TRANSLATE='ru' \
-e DB_CONNECTION='postgres' \
-e DB_HOST= ${{ secrets.DEPLOY_SERVER_HOST }} \
-e DB_PORT='5432' \
-e DB_USERNAME= ${{ secrets.DB_USERNAME }} \
-e DB_PASSWORD= ${{ secrets.DB_PASSWORD }} \
-e DB_DATABASE= ${{ secrets.DB_DATABASE }} \
-e DB_SYNCHRONIZE='true' \
-e DB_LOGGING='false' \
${{ secrets.DOCKER_HUB_REPO }}:test
docker run --restart always -d --name twarden -e BOT_TOKEN=${{ secrets.BOT_TOKEN }} -e TO_TRANSLATE='ru' -e DB_CONNECTION='postgres' -e DB_HOST=${{ secrets.DEPLOY_SERVER_HOST }} -e DB_PORT=5432 -e DB_USERNAME=${{ secrets.DB_USERNAME }} -e DB_PASSWORD=${{ secrets.DB_PASSWORD }} -e DB_DATABASE=${{ secrets.DB_DATABASE }} -e DB_SYNCHRONIZE=true -e DB_LOGGING=false ${{ secrets.DOCKER_HUB_REPO }}:test
docker ps

0 comments on commit b3be52b

Please sign in to comment.