Skip to content

Commit

Permalink
Update ci
Browse files Browse the repository at this point in the history
  • Loading branch information
xmnlab committed May 26, 2022
1 parent 62bc3dc commit 2b8ff57
Show file tree
Hide file tree
Showing 2 changed files with 23 additions and 7 deletions.
28 changes: 22 additions & 6 deletions .github/workflows/main.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -68,12 +68,12 @@ jobs:
- name: wait for the services are properly working
run: |
docker ps
./docker/healthcheck.sh epigraphhub-db
./docker/healthcheck.sh epigraphhub-redis
./docker/healthcheck.sh epigraphhub-celery
./docker/healthcheck.sh epigraphhub-celery-beat
./docker/healthcheck.sh epigraphhub-flower
./docker/healthcheck.sh epigraphhub-superset
timeout 180 ./docker/healthcheck.sh epigraphhub-db
timeout 180 ./docker/healthcheck.sh epigraphhub-redis
timeout 180 ./docker/healthcheck.sh epigraphhub-celery
timeout 180 ./docker/healthcheck.sh epigraphhub-celery-beat
timeout 180 ./docker/healthcheck.sh epigraphhub-flower
timeout 180 ./docker/healthcheck.sh epigraphhub-superset
- name: prepare database
run: make docker-dev-prepare-db
Expand All @@ -82,6 +82,22 @@ jobs:
run: |
make docker-run-cron SERVICE=epigraphhub-superset
- name: test cron scripts
run: |
make docker-run-cron SERVICE=epigraphhub-superset
- name: Generate log
if: ${{ failure() }}
run: |
make docker-logs SERVICES= > /tmp/docker.log
- name: Archive log artifacts
uses: actions/upload-artifact@v3
if: ${{ failure() }}
with:
name: docker-log
path: /tmp/docker.log

- name: Deploy
if: ${{ github.event_name == 'push' }}
env:
Expand Down
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ docker-logs-follow:

.PHONY:docker-logs
docker-logs:
$(DOCKER) logs --tail 200 ${SERVICES}
$(DOCKER) logs --tail 300 ${SERVICES}

.PHONY: docker-wait
docker-wait:
Expand Down

0 comments on commit 2b8ff57

Please sign in to comment.