forked from tailscale/tailscale
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
build and publish tailscale client, k8s-operator and k8s-nameserver i…
…mages
- Loading branch information
1 parent
7f3841b
commit 9faf74e
Showing
2 changed files
with
45 additions
and
31 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,45 @@ | ||
name: Publish Dev Operator | ||
|
||
on: | ||
push: | ||
tags: | ||
- 'v*.*.*' | ||
- 'v*.*.*-*' | ||
jobs: | ||
publish: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout code | ||
uses: actions/checkout@v2 | ||
|
||
- name: Set up Docker Buildx | ||
uses: docker/setup-buildx-action@v1 | ||
|
||
- name: Login to GitHub Container Registry | ||
uses: docker/login-action@v3 | ||
with: | ||
registry: ghcr.io | ||
username: ${{ github.actor }} | ||
password: ${{ secrets.GITHUB_TOKEN }} | ||
|
||
- name: Build and publish k8s-operator image | ||
env: | ||
REPO: ghcr.io/${{ github.repository_owner }}/tailscale/k8s-operator | ||
TAGS: ${{ github.ref_name }} | ||
run: | | ||
echo "Building and publishing k8s-operator to ${REPO} with tags ${TAGS}" | ||
TAGS="${TAGS}" REPOS=${REPO} PLATFORM=${PLATFORM} PUSH=true TARGET=operator ./build_docker.sh | ||
- name: Build and publish nameserver image | ||
env: | ||
REPO: ghcr.io/${{ github.repository_owner }}/tailscale/k8s-nameserver | ||
TAGS: ${{ github.ref_name }} | ||
run: | | ||
echo "Building and publishing k8s-nameserver to ${REPO} with tags ${TAGS}" | ||
TAGS="${TAGS}" REPOS=${REPO} PLATFORM=${PLATFORM} PUSH=true TARGET=k8s-nameserver ./build_docker.sh | ||
- name: Build and publish client image | ||
env: | ||
REPO: ghcr.io/${{ github.repository_owner }}/tailscale/tailscale | ||
TAGS: ${{ github.ref_name }} | ||
run: | | ||
echo "Building and publishing tailscale client to ${REPO} with tags ${TAGS}" | ||
TAGS="${TAGS}" REPOS=${REPO} PLATFORM=${PLATFORM} PUSH=true TARGET=client ./build_docker.sh |
This file was deleted.
Oops, something went wrong.