mirror of
https://github.com/tailscale/tailscale.git
synced 2025-12-30 07:54:18 +00:00
Add flags: * --cigocached-host to support alternative host resolution in other environments, like the corp repo. * --stats to reduce the amount of bash script we need. * --version to support a caching tool/cigocacher script that will download from GitHub releases. Updates tailscale/corp#10808 Change-Id: Ib2447bc5f79058669a70f2c49cef6aedd7afc049 Signed-off-by: Tom Proctor <tomhjp@users.noreply.github.com>
35 lines
866 B
YAML
35 lines
866 B
YAML
name: go-cache
|
|
description: Set up build to use cigocacher
|
|
|
|
inputs:
|
|
cigocached-url:
|
|
description: URL of the cigocached server
|
|
required: true
|
|
cigocached-host:
|
|
description: Host to dial for the cigocached server
|
|
required: true
|
|
checkout-path:
|
|
description: Path to cloned repository
|
|
required: true
|
|
cache-dir:
|
|
description: Directory to use for caching
|
|
required: true
|
|
|
|
outputs:
|
|
success:
|
|
description: Whether cigocacher was set up successfully
|
|
value: ${{ steps.setup.outputs.success }}
|
|
|
|
runs:
|
|
using: composite
|
|
steps:
|
|
- name: Setup cigocacher
|
|
id: setup
|
|
shell: bash
|
|
env:
|
|
URL: ${{ inputs.cigocached-url }}
|
|
HOST: ${{ inputs.cigocached-host }}
|
|
CACHE_DIR: ${{ inputs.cache-dir }}
|
|
working-directory: ${{ inputs.checkout-path }}
|
|
run: .github/actions/go-cache/action.sh
|