diff --git a/.github/workflows/publish-operator.yml b/.github/workflows/publish-operator.yml new file mode 100644 index 00000000000000..d227f7c58144b0 --- /dev/null +++ b/.github/workflows/publish-operator.yml @@ -0,0 +1,24 @@ +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 }} + run: | + echo "Building and publishing to ${REPO} with tags ${TAGS}" + make publishdevoperator