mirror of
https://github.com/openimsdk/open-im-server.git
synced 2025-04-06 04:15:46 +08:00
fix: update workflows logic. (#2688)
* refactor: add GetAdminToken interface. * update config. * update workflows logic.
This commit is contained in:
parent
82845df518
commit
6259a49c61
54
.github/workflows/publish-docker-image.yml
vendored
54
.github/workflows/publish-docker-image.yml
vendored
@ -63,34 +63,34 @@ jobs:
|
|||||||
docker compose up -d
|
docker compose up -d
|
||||||
sleep 60
|
sleep 60
|
||||||
|
|
||||||
- name: Check openim-server health
|
# - name: Check openim-server health
|
||||||
run: |
|
# run: |
|
||||||
timeout=300
|
# timeout=300
|
||||||
interval=30
|
# interval=30
|
||||||
elapsed=0
|
# elapsed=0
|
||||||
while [[ $elapsed -le $timeout ]]; do
|
# while [[ $elapsed -le $timeout ]]; do
|
||||||
if ! docker exec openim-server mage check; then
|
# if ! docker exec openim-server mage check; then
|
||||||
echo "openim-server is not ready, waiting..."
|
# echo "openim-server is not ready, waiting..."
|
||||||
sleep $interval
|
# sleep $interval
|
||||||
elapsed=$(($elapsed + $interval))
|
# elapsed=$(($elapsed + $interval))
|
||||||
else
|
# else
|
||||||
echo "Health check successful"
|
# echo "Health check successful"
|
||||||
exit 0
|
# exit 0
|
||||||
fi
|
# fi
|
||||||
done
|
# done
|
||||||
echo "Health check failed after 5 minutes"
|
# echo "Health check failed after 5 minutes"
|
||||||
exit 1
|
# exit 1
|
||||||
|
|
||||||
- name: Check openim-chat health
|
# - name: Check openim-chat health
|
||||||
if: success()
|
# if: success()
|
||||||
run: |
|
# run: |
|
||||||
if ! docker exec openim-chat mage check; then
|
# if ! docker exec openim-chat mage check; then
|
||||||
echo "openim-chat check failed"
|
# echo "openim-chat check failed"
|
||||||
exit 1
|
# exit 1
|
||||||
else
|
# else
|
||||||
echo "Health check successful"
|
# echo "Health check successful"
|
||||||
exit 0
|
# exit 0
|
||||||
fi
|
# fi
|
||||||
|
|
||||||
|
|
||||||
- name: Extract metadata for Docker # (tags, labels)
|
- name: Extract metadata for Docker # (tags, labels)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user