-
Notifications
You must be signed in to change notification settings - Fork 20
51 lines (49 loc) · 1.6 KB
/
nightly.yml
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
name: Dashboard Mannually Package
on:
workflow_dispatch:
inputs:
version:
required: false
type: string
description: "The version of the package(default use package.json version)"
env:
VERSION: ${{ github.event.inputs.version }}
jobs:
package:
name: build package
runs-on: [self-hosted, nebula-fast]
strategy:
matrix:
os:
- centos7
cpu_arch:
- [amd64, nebula-fast]
container:
image: reg.vesoft-inc.com/dashboard/dashboard-dev:amd64-${{ matrix.os }}-latest
credentials:
username: ${{ secrets.HARBOR_USERNAME }}
password: ${{ secrets.HARBOR_PASSWORD }}
steps:
- name: keep workspace empty
run: |
rm -rf *
- uses: actions/checkout@v2
with:
path: source/nebula-dashboard
- uses: actions/checkout@v2
with:
repository: vesoft-inc/nebula-http-gateway
path: source/nebula-http-gateway
ref: v3.1.4
# - uses: actions/setup-go@v2
# with:
# go-version: '^1.13.1'
# - uses: actions/setup-node@v2
# with:
# node-version: '14'
- name: ls
run: ls -a
- name: Package
run: bash ./source/nebula-dashboard/scripts/package.sh source/nebula-dashboard source/nebula-http-gateway ${{ matrix.cpu_arch[0] }} ${{ secrets.GA_ID }} ${VERSION}
- name: Upload to OSS
run: bash ./source/nebula-dashboard/scripts/upload.sh ${{ secrets.OSS_ENDPOINT }} ${{ secrets.OSS_ID }} ${{ secrets.OSS_SECRET }} ${{ secrets.OSS_TEST_URL }}community/ ${VERSION}