fixing main and build updates
Some checks failed
Build and Deploy Docker Container / build-and-deploy (push) Failing after 4s

This commit is contained in:
2025-09-21 16:12:03 +02:00
parent 3c5dcc6ac2
commit 8904da50dc
2 changed files with 19 additions and 2 deletions

View File

@@ -28,7 +28,7 @@ jobs:
- name: Verify the Docker image is running
run: |
docker run -d --name test-thc-webhook -e DISCORD_WEBHOOK_URL=${{ secrets.DISCORD_WEBHOOK_URL }} -p 8080:8080 git.allucanget.biz/${{ secrets.REGISTRY_USERNAME }}/thc-webhook:latest
docker run -d --name test-thc-webhook -e DISCORD_WEBHOOK_URL=${{ secrets.DISCORD_WEBHOOK_URL }} -e TENOR_API_KEY=${{ secrets.TENOR_API_KEY }} -p 8080:8080 git.allucanget.biz/${{ secrets.REGISTRY_USERNAME }}/thc-webhook:latest
sleep 10
if [ $(docker ps -q -f name=test-thc-webhook | wc -l) -eq 1 ]; then
echo "Container is running successfully."
@@ -39,3 +39,19 @@ jobs:
echo "Container failed to start."
exit 1
fi
- name: Clean up Docker images
run: docker image prune -f
- name: Portainer Deployment
uses: portainer/portainer-gitea-action@v1
with:
gitea_url: "https://git.allucanget.biz"
gitea_token: ${{ secrets.GITEA_TOKEN }}
gitea_repo: "${{ secrets.GITEA_REPO }}"
stack_file_path: "docker-compose.yml"
stack_name: "thc-webhook"
endpoint_name: "local"
prune: true
pull_image: true
update: true
redeploy: true