blob: 8aeae32494a316bc460fef30b12ac7af3c045f49 [file] [log] [blame]
name: apisix all in one docker
on:
push:
branches:
- master
pull_request:
branches:
- master
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Build and Test
run: |
docker build -t apache/apisix:whole -f ./all-in-one/apisix/Dockerfile .
docker run -v `pwd`/all-in-one/apisix/config.yaml:/usr/local/apisix/conf/config.yaml -p 9080:9080 -p 2379:2379 -d apache/apisix:whole
sleep 30
curl http://127.0.0.1:9080/apisix/admin/schema/service -H 'X-API-KEY: edd1c9f034335f136f87ad84b625c8f1'