forked from volcano-sh/devices
-
Notifications
You must be signed in to change notification settings - Fork 0
44 lines (37 loc) · 1.09 KB
/
main.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
name: FOSSA
on:
push:
tags:
- v[0-9]+.[0-9]+.[0-9]+
branches: [master,dev-vgpu-1219]
pull_request:
branches: [master,dev-vgpu-1219]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-go@v2
with:
go-version: "^1.19.x"
- name: Checkout submodule
uses: Mushus/[email protected]
with:
submodulePath: libvgpu
- run: go version
# Runs a set of commands to initialize and analyze with FOSSA
- name: Get branch name
uses: nelonoel/[email protected]
- name: Docker Login
uses: docker/[email protected]
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}
- name: Set up Docker Buildx
id: buildx
uses: docker/setup-buildx-action@v1
- run: make ubuntu20.04
- run: TAG_VERSION="${BRANCH_NAME}" make push-tag
- run: make push-latest
- run: make vgpu
- run: TAG_VERSION="${BRANCH_NAME}" make push-vgpu-tag