This repository was archived by the owner on Jun 11, 2025. It is now read-only.
Introduces Workspace and WorkMachine resource and controllers #177
This file contains hidden or 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: Build Operators With Nix Flakes | |
| on: | |
| workflow_dispatch: | |
| inputs: | |
| image_tag: | |
| type: string | |
| description: "image_tag" | |
| required: true | |
| default: "" | |
| push: | |
| paths: | |
| - "operators/**" | |
| - "operator/**" | |
| - "cmd/agent-operator/**" | |
| - "cmd/platform-operator/**" | |
| - "pkg/**" | |
| - "common/**" | |
| - "go.*" | |
| - ".github/workflows/**" | |
| - "apis/**/*.go" | |
| - "needs-images/**" | |
| permissions: | |
| contents: read | |
| packages: write | |
| jobs: | |
| build-images: | |
| strategy: | |
| fail-fast: false | |
| matrix: | |
| images: | |
| - name: agent-operator | |
| - name: platform-operator | |
| - name: wireguard-operator | |
| - name: helm-charts-operator | |
| - name: helm-charts-job-runner | |
| - name: networking-operator | |
| - name: networking/cmd/ip-binding-controller | |
| - name: networking/cmd/ip-manager | |
| - name: networking/cmd/webhook | |
| - name: networking/cmd/dns | |
| - name: networking/cmd/logs-proxy | |
| runs-on: ubuntu-latest | |
| name: ${{ matrix.images.name }} | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@v4 | |
| - name: build-and-push | |
| uses: ./.github/actions/build-operator-images/ | |
| with: | |
| image_tag: ${{github.event.inputs.image_tag}} | |
| cachix_enabled: true | |
| cachix_auth_token: ${{ secrets.CACHIX_AUTH_TOKEN }} | |
| docker_enabled: true | |
| github_token: ${{ secrets.GITHUB_TOKEN }} | |
| git_directory: "./" | |
| platform-operator: ${{ matrix.images.name == 'platform-operator' }} | |
| agent-operator: ${{ matrix.images.name == 'agent-operator' }} | |
| wireguard-operator: ${{ matrix.images.name == 'wireguard-operator' }} | |
| helm-charts-operator: ${{ matrix.images.name == 'helm-charts-operator' }} | |
| helm-charts-job-runner: ${{ matrix.images.name == 'helm-charts-job-runner' }} | |
| networking-operator: ${{ matrix.images.name == 'networking-operator' }} | |
| networking_ip-binding-controller: ${{ matrix.images.name == 'networking/cmd/ip-binding-controller' }} | |
| networking_ip-manager: ${{ matrix.images.name == 'networking/cmd/ip-manager' }} | |
| networking_dns: ${{ matrix.images.name == 'networking/cmd/dns' }} | |
| networking_webhook: ${{ matrix.images.name == 'networking/cmd/webhook' }} | |
| networking_logs_proxy: ${{ matrix.images.name == 'networking/cmd/logs-proxy' }} | |