Skip to content

Commit ca43002

Browse files
authored
Merge pull request #18 from ninech/bring-back-commits
Apply nine customizations
2 parents 84eac7b + 80e5c9c commit ca43002

File tree

20 files changed

+794
-65
lines changed

20 files changed

+794
-65
lines changed
Lines changed: 45 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,45 @@
1+
name: Publish Dev Operator
2+
3+
on:
4+
push:
5+
tags:
6+
- 'v*.*.*'
7+
- 'v*.*.*-*'
8+
jobs:
9+
publish:
10+
runs-on: ubuntu-latest
11+
steps:
12+
- name: Checkout code
13+
uses: actions/checkout@v4
14+
15+
- name: Set up Docker Buildx
16+
uses: docker/setup-buildx-action@v3
17+
18+
- name: Login to GitHub Container Registry
19+
uses: docker/login-action@v3
20+
with:
21+
registry: ghcr.io
22+
username: ${{ github.actor }}
23+
password: ${{ secrets.GITHUB_TOKEN }}
24+
25+
- name: Build and publish k8s-operator image
26+
env:
27+
REPO: ghcr.io/${{ github.repository_owner }}/tailscale-k8s-operator
28+
TAGS: ${{ github.ref_name }}
29+
run: |
30+
echo "Building and publishing k8s-operator to ${REPO} with tags ${TAGS}"
31+
TAGS="${TAGS}" REPOS=${REPO} PLATFORM=${PLATFORM} PUSH=true TARGET=operator ./build_docker.sh
32+
- name: Build and publish nameserver image
33+
env:
34+
REPO: ghcr.io/${{ github.repository_owner }}/tailscale-k8s-nameserver
35+
TAGS: ${{ github.ref_name }}
36+
run: |
37+
echo "Building and publishing k8s-nameserver to ${REPO} with tags ${TAGS}"
38+
TAGS="${TAGS}" REPOS=${REPO} PLATFORM=${PLATFORM} PUSH=true TARGET=k8s-nameserver ./build_docker.sh
39+
- name: Build and publish client image
40+
env:
41+
REPO: ghcr.io/${{ github.repository_owner }}/tailscale
42+
TAGS: ${{ github.ref_name }}
43+
run: |
44+
echo "Building and publishing tailscale client to ${REPO} with tags ${TAGS}"
45+
TAGS="${TAGS}" REPOS=${REPO} PLATFORM=${PLATFORM} PUSH=true TARGET=client ./build_docker.sh

.github/workflows/chart.yaml

Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
name: package-helm-chart
2+
3+
on:
4+
push:
5+
tags:
6+
- 'v*.*.*'
7+
- 'v*.*.*-*'
8+
workflow_dispatch:
9+
10+
jobs:
11+
package-and-push-helm-chart:
12+
permissions:
13+
contents: read
14+
packages: write
15+
16+
runs-on: ubuntu-latest
17+
18+
steps:
19+
- name: Checkout code
20+
uses: actions/checkout@v4.2.2
21+
22+
- name: Set environment variables
23+
id: set-variables
24+
run: |
25+
echo "REPOSITORY=ghcr.io/$(echo ${{ github.repository }} | tr '[:upper:]' '[:lower:]')" >> "$GITHUB_OUTPUT"
26+
27+
- name: Login to GitHub Container Registry
28+
uses: docker/login-action@v3.3.0
29+
with:
30+
registry: ghcr.io
31+
username: ${{ github.actor }}
32+
password: ${{ github.token }}
33+
34+
- name: Build, package and push helm chart
35+
run: |
36+
./tool/go run cmd/k8s-operator/generate/main.go helmcrd
37+
./tool/helm package --app-version=${{ github.ref_name }} --version=${{ github.ref_name }} './cmd/k8s-operator/deploy/chart'
38+
./tool/helm push ./tailscale-operator-${{ github.ref_name }}.tgz oci://${{ steps.set-variables.outputs.REPOSITORY }}/charts

.github/workflows/test.yml

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -208,6 +208,8 @@ jobs:
208208
find $(go env GOCACHE) -type f -mmin +90 -delete
209209
210210
windows:
211+
# we disable the windows tests as we don't have a big enough runner
212+
if: false
211213
# windows-8vpu is a 2022 GitHub-managed runner in our
212214
# org with 8 cores and 32 GB of RAM:
213215
# https://github.com/organizations/tailscale/settings/actions/github-hosted-runners/1
@@ -314,7 +316,10 @@ jobs:
314316
needs: gomod-cache
315317
runs-on: ["self-hosted", "linux", "vm"]
316318
# VM tests run with some privileges, don't let them run on 3p PRs.
317-
if: github.repository == 'tailscale/tailscale'
319+
# if: github.repository == 'tailscale/tailscale'
320+
#
321+
# we disable VM tests
322+
if: false
318323
steps:
319324
- name: checkout
320325
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
@@ -853,8 +858,6 @@ jobs:
853858
needs:
854859
- android
855860
- test
856-
- windows
857-
- vm
858861
- cross
859862
- ios
860863
- wasm
@@ -902,8 +905,6 @@ jobs:
902905
needs:
903906
- check_mergeability_strict
904907
- test
905-
- windows
906-
- vm
907908
- wasm
908909
- fuzz
909910
- race-root-integration

0 commit comments

Comments
 (0)