fixing main and build updates
Some checks failed
Build and Deploy Docker Container / build-and-deploy (push) Failing after 4s
Some checks failed
Build and Deploy Docker Container / build-and-deploy (push) Failing after 4s
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user