-
Notifications
You must be signed in to change notification settings - Fork 5
60 lines (52 loc) · 1.18 KB
/
go.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
52
53
54
55
56
57
58
59
name: Go
on: [push]
env:
GO111MODULE: on
jobs:
build-docker:
name: Build-in-docker
runs-on: ubuntu-latest
steps:
- name: Check out code into the Go module directory
uses: actions/checkout@v1
- name: Docker build
run: |
cd /src
go mod download
go build -v ./cmd/istiod
container:
image: golang:1.13-alpine
volumes:
- .:/src
build:
name: Build
runs-on: ubuntu-latest
steps:
- name: Set up Go 1.13
uses: actions/setup-go@v1
with:
go-version: 1.13
id: go
- name: Check out code into the Go module directory
uses: actions/checkout@v1
- name: Get dependencies
run: |
go mod download
- name: Build
run: |
go build -v ./cmd/istiod
go build -v ./cmd/istiod-vm
services:
k8s:
image: rancher/k3s:latest
ports:
- 6443:6443
- 6080:80
env:
- K3S_KUBECONFIG_OUTPUT=/conf/kubeconfig.yaml
- K3S_KUBECONFIG_MODE=666
volumes:
- .:/conf
- k3s-server:/var/lib/rancher/k3s
options:
- --privileged