1234567891011121314151617181920212223242526272829303132333435363738394041424344454647 |
- name: dashboard docker test
- on:
- push:
- branches:
- - master
- pull_request:
- branches:
- - master
- jobs:
- dashboard-docker-test:
- strategy:
- fail-fast: false
- matrix:
- os:
- - centos
- - alpine
- name: build dashboard & test on ${{ matrix.os }}
- runs-on: ubuntu-latest
- env:
- APISIX_DASHBOARD_TAG: "2.11"
- steps:
- - name: Checkout
- uses: actions/checkout@v2
- - name: Build and run
- run: |
- make build-dashboard-${{ matrix.os }}
- docker-compose -f ./compose/dashboard-compose.yaml up -d
- sleep 30
- docker logs compose_dashboard_1
- - name: check
- run: |
- wget https://raw.githubusercontent.com/apache/apisix-dashboard/master/api/test/shell/manager_smoking.sh
- chmod +x ./manager_smoking.sh
- sh manager_smoking.sh -s true
- - name: Tar Image
- run: |
- make save-dashboard-${{ matrix.os }}-tar
- - name: Upload Image
- uses: actions/upload-artifact@v2
- with:
- path: ./package
|