apisix_all_in_one_ci.yaml 624 B

12345678910111213141516171819202122
  1. name: apisix all in one docker
  2. on:
  3. push:
  4. branches:
  5. - master
  6. pull_request:
  7. branches:
  8. - master
  9. jobs:
  10. build:
  11. runs-on: ubuntu-latest
  12. steps:
  13. - uses: actions/checkout@v3
  14. - name: Build and Test
  15. run: |
  16. docker build -t apache/apisix:whole -f ./all-in-one/apisix/Dockerfile .
  17. docker run -v `pwd`/all-in-one/apisix/config.yaml:/usr/local/apisix/conf/config.yaml -p 9080:9080 -p 2379:2379 --name apisix -d apache/apisix:whole
  18. sleep 30
  19. curl http://127.0.0.1:9080/apisix/admin/schema/service -H 'X-API-KEY: edd1c9f034335f136f87ad84b625c8f1'