-
Notifications
You must be signed in to change notification settings - Fork 1
58 lines (54 loc) · 1.44 KB
/
github.yml
File metadata and controls
58 lines (54 loc) · 1.44 KB
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
name: "go-example"
env:
# Common versions
GO_VERSION: '1.22'
TZ: Asia/Shanghai
permissions: write-all
on:
push:
branches:
- '*'
jobs:
test:
name: "test"
timeout-minutes: 20
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v6
- name: Install Go
uses: actions/setup-go@v6
with:
go-version: ${{ env.GO_VERSION }}
check-latest: true
- name: Login GHCR
uses: docker/login-action@v4
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GHCRIO }}
- name: install gox
run: |
echo "install gox"
go install github.com/mitchellh/gox@latest
- name: install task
run: |
echo "install task"
go install github.com/go-task/task/v3/cmd/task@latest
- name: build docker image
run: |
task docker
- name: install kind
uses: helm/kind-action@v1
- name: install kubectl
uses: azure/setup-kubectl@v5
- name: deploy goexample
run: |
kubectl apply -f hack/deploy/k8s/deploy.yaml
kubectl get pods,svc,ing -n ysicing-system
# - uses: luchihoratiu/debug-via-ssh@main
# with:
# NGROK_AUTH_TOKEN: ${{ secrets.NGROK_AUTH_TOKEN }}
# SSH_PASS: ${{ secrets.SSH_PASS }}
# NGROK_REGION: ap
# NGROK_TIMEOUT: 3600