-
Notifications
You must be signed in to change notification settings - Fork 454
56 lines (45 loc) · 1.41 KB
/
dashboard_push_docker_hub.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
name: Push apisix dashboard to Docker image
on:
push:
branches: ['release/apisix-dashboard**']
jobs:
build:
strategy:
fail-fast: false
matrix:
os:
- alpine
name: build dashboard & test on ${{ matrix.os }} && push to docker hub
runs-on: ubuntu-latest
env:
APISIX_DASHBOARD_VERSION: "3.0.1" # in semver
steps:
- name: Check out the repo
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@v4
with:
path: ./package
- name: Login to Docker Hub
uses: docker/login-action@v1
with:
username: ${{ secrets.DOCKERHUB_USER }}
password: ${{ secrets.DOCKERHUB_TOKEN }}
- name: Set up QEMU
uses: docker/setup-qemu-action@v1
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v1