Skip to content

Commit b718e92

Browse files
committed
build and publish tailscale client, k8s-operator and k8s-nameserver images
1 parent 7f3841b commit b718e92

File tree

2 files changed

+45
-31
lines changed

2 files changed

+45
-31
lines changed
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@v2
14+
15+
- name: Set up Docker Buildx
16+
uses: docker/setup-buildx-action@v1
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/publish-operator.yml

-31
This file was deleted.

0 commit comments

Comments
 (0)