feat: remove deployment step from Docker workflow and add nixpacks configuration
This commit is contained in:
@@ -53,15 +53,3 @@ jobs:
|
||||
context: .
|
||||
push: true
|
||||
tags: git.allucanget.biz/${{ secrets.REGISTRY_USERNAME }}/thc-webhook:latest
|
||||
|
||||
- name: Deploy to Portainer
|
||||
uses: appleboy/ssh-action@v0.1.7
|
||||
with:
|
||||
host: ${{ secrets.SERVER_HOST }}
|
||||
username: ${{ secrets.SERVER_USER }}
|
||||
key: ${{ secrets.SERVER_SSH_KEY }}
|
||||
script: |
|
||||
docker stop thc-webhook || true
|
||||
docker rm thc-webhook || true
|
||||
docker pull git.allucanget.biz/${{ secrets.REGISTRY_USERNAME }}/thc-webhook:latest
|
||||
docker run -d --name thc-webhook -e DISCORD_WEBHOOK_URL=${{ secrets.DISCORD_WEBHOOK_URL }} -p 8420:8420 git.allucanget.biz/${{ secrets.REGISTRY_USERNAME }}/thc-webhook:latest
|
||||
|
||||
@@ -0,0 +1,12 @@
|
||||
[phases.install]
|
||||
cmds = ["pip install -r requirements.txt"]
|
||||
|
||||
[phases.test]
|
||||
dependsOn = ["install"]
|
||||
cmds = ["pytest --maxfail=1 --disable-warnings -q"]
|
||||
|
||||
[start]
|
||||
cmd = "python main.py"
|
||||
|
||||
[variables]
|
||||
PORT = "8420"
|
||||
Reference in New Issue
Block a user