refactor: remove Docker image verification and cleanup steps from build-container workflow
Some checks failed
Test Application / test (push) Successful in 41s
Build and Deploy Docker Container / build-and-deploy (push) Failing after 26s

This commit is contained in:
2025-10-05 16:08:43 +02:00
parent 08069d660d
commit 983c7cde9d

View File

@@ -30,26 +30,6 @@ jobs:
push: true
tags: git.allucanget.biz/${{ secrets.REGISTRY_USERNAME }}/thc-webhook:latest
- name: Verify the Docker image is running
run: |
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."
docker logs test-thc-webhook
docker stop test-thc-webhook
docker rm test-thc-webhook
else
echo "Container failed to start."
exit 1
fi
- name: Clean up Docker images
run: docker image prune -f
portainer-deploy:
runs-on: ubuntu-latest
needs: build-and-deploy
steps:
- name: Deploy to Portainer
uses: appleboy/ssh-action@v0.1.7
with: