In tailscale-router, add support for additionalVolumes #428
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: Dev | |
on: | |
push: | |
branches-ignore: | |
- release | |
- 'releases/*' | |
jobs: | |
check: | |
name: Check code quality | |
timeout-minutes: 20 | |
runs-on: | |
- self-hosted | |
- nix | |
- general | |
- arm64-linux | |
- medium | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Check code quality | |
shell: nix develop -v -c bash {0} | |
run: | | |
export DENO_DIR=$(mktemp -d) | |
trapt "rm -rf $DENO_DIR" EXIT | |
./cli.sh populate_deno_dir_from_nix aarch64-linux "${DENO_DIR}" | |
./cli.sh code_quality | |
build-packages: | |
name: Build packages | |
timeout-minutes: 20 | |
needs: [check] | |
runs-on: | |
- self-hosted | |
- nix | |
- general | |
- ${{ matrix.runner.runner }} | |
- ${{ matrix.runner.size }} | |
strategy: | |
fail-fast: false | |
matrix: | |
runner: | |
- arch: x86_64-linux | |
runner: amd64-linux | |
size: medium | |
- arch: aarch64-linux | |
runner: arm64-linux | |
size: medium | |
- arch: aarch64-darwin | |
runner: arm64-darwin | |
size: small | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Build all packages | |
run: nix build -L -v '.#defaultPackage.${{ matrix.runner.arch }}' | |
- name: Cache all packages | |
env: | |
NIX_OUTPUT: .#defaultPackage.${{ matrix.runner.arch }} | |
shell: nix develop -v -c bash {0} | |
run: | | |
nix store sign "${NIX_OUTPUT}" -v -r -k ~/.secrets/nix-cache-private-key | |
nix copy -v --to "s3://${NIX_CACHE_BUCKET_NAME}/cache?region=${NIX_CACHE_BUCKET_REGION}&compression=zstd¶llel-compression=true" "${NIX_OUTPUT}" | |
build-push-images: | |
name: Build and push images | |
timeout-minutes: 20 | |
runs-on: | |
- self-hosted | |
- nix | |
- general | |
- ${{ matrix.imageArch }}-linux | |
- medium | |
needs: [build-packages] | |
strategy: | |
fail-fast: false | |
matrix: | |
imageArch: [amd64, arm64] | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Build all images | |
shell: nix develop -v -c bash {0} | |
run: | | |
./cli.sh build_all_images ${{ matrix.imageArch }} | |
- name: Push all images | |
# if: github.ref == 'refs/heads/main' | |
shell: nix develop -v -c bash {0} | |
run: | | |
./cli.sh push_all_single_arch_images ${{ matrix.imageArch }} | |
push-manifests: | |
name: Build and push multi-arch manifests | |
timeout-minutes: 20 | |
runs-on: [self-hosted, nix, general, arm64-linux, small] | |
needs: [build-push-images] | |
# if: github.ref == 'refs/heads/main' | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Build and push images | |
shell: nix develop -v -c bash {0} | |
run: | | |
./cli.sh push_all_manifests |