-
Notifications
You must be signed in to change notification settings - Fork 2
38 lines (38 loc) · 1.13 KB
/
k8s.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
name: k8s
on:
push:
branches: [main]
jobs:
unwind:
name: Unwind
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: tailscale/github-action@v2
with:
oauth-client-id: ${{ secrets.TS_OAUTH_CLIENT_ID }}
oauth-secret: ${{ secrets.TS_OAUTH_SECRET }}
tags: tag:ci
- name: Login to the Kubernetes cluster
run: tailscale configure kubeconfig tailscale-operator
- uses: bazelbuild/setup-bazelisk@v2
- name: Mount bazel cache
uses: actions/cache@v3
with:
path: "~/.cache/bazel"
key: bazel
- name: Login to the GitHub Container Registry
uses: docker/login-action@v2
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
# https://github.com/bazelbuild/rules_k8s/issues/640
- name: Apply
env:
KUBECTL_APPLYSET: "true"
run: |
bazel run \
--config=ci \
--remote_header=x-buildbuddy-api-key=${{ secrets.BUILDBUDDY_ORG_API_KEY }} \
//k8s/unwind:object.apply