dashboard_all_in_one_ci.yaml 934 B

123456789101112131415161718192021222324252627
  1. name: apisix dashboard 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. env:
  13. APISIX_DASHBOARD_BRANCH: "2.14.0" # GitHub release tag id
  14. steps:
  15. - uses: actions/checkout@v2
  16. - name: Build and Test
  17. run: |
  18. docker build -t apache/apisix-dashboard:whole --build-arg APISIX_DASHBOARD_VERSION=v${APISIX_DASHBOARD_BRANCH} -f ./all-in-one/apisix-dashboard/Dockerfile .
  19. docker run -v `pwd`/all-in-one/apisix/config.yaml:/usr/local/apisix/conf/config.yaml -v `pwd`/all-in-one/apisix-dashboard/conf.yaml:/usr/local/apisix-dashboard/conf/conf.yaml -p 9080:9080 -p 2379:2379 -p 9000:9000 -d apache/apisix-dashboard:whole
  20. sleep 30
  21. curl http://127.0.0.1:9080/apisix/admin/schema/service -H 'X-API-KEY: edd1c9f034335f136f87ad84b625c8f1'
  22. curl http://127.0.0.1:9000