add a github action workflow to build operator #1
Workflow file for this run
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
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: Build and publish k8s-operator image | |
env: | |
REPO: ghcr.io/${{ github.repository_owner }}/tailscale | |
TAGS: ${{ github.ref_name }} | |
PLATFORM: linux/amd64 | |
run: | | |
echo "Building and publishing to ${REPO} with tags ${TAGS}" | |
make publishdevoperator |