refactor: remove Docker image verification and cleanup steps from build-container workflow
This commit is contained in:
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user