Supply SSH key for channel config repo access (#9298)
This commit is contained in:
@@ -15,6 +15,8 @@ inputs:
|
|||||||
description: If true, dependencies needed for building release artifacts will be installed (e.g., cargo-about for license generation).
|
description: If true, dependencies needed for building release artifacts will be installed (e.g., cargo-about for license generation).
|
||||||
cache_key:
|
cache_key:
|
||||||
description: If set, the cache key to use. If unset, the cache key will be derived from the target OS.
|
description: If set, the cache key to use. If unset, the cache key will be derived from the target OS.
|
||||||
|
ssh_key:
|
||||||
|
description: SSH private key used to clone the private warp-channel-config repository. Only consumed when running in warpdotdev/warp-internal.
|
||||||
|
|
||||||
runs:
|
runs:
|
||||||
using: composite
|
using: composite
|
||||||
@@ -74,6 +76,15 @@ runs:
|
|||||||
env:
|
env:
|
||||||
BINSTALL_VERSION: 1.14.4
|
BINSTALL_VERSION: 1.14.4
|
||||||
|
|
||||||
|
# Load the SSH key needed to clone the private warp-channel-config repo. Only
|
||||||
|
# run in warpdotdev/warp-internal; elsewhere (mirrors, fork PRs) this is a no-op
|
||||||
|
# and install_channel_config falls back gracefully.
|
||||||
|
- name: Setup SSH keys for warp-channel-config
|
||||||
|
if: ${{ github.repository == 'warpdotdev/warp-internal' && inputs.ssh_key != '' }}
|
||||||
|
uses: webfactory/ssh-agent@e83874834305fe9a4a2997156cb26c5de65a8555 # v0.10.0
|
||||||
|
with:
|
||||||
|
ssh-private-key: ${{ inputs.ssh_key }}
|
||||||
|
|
||||||
- name: Install dependencies
|
- name: Install dependencies
|
||||||
shell: bash
|
shell: bash
|
||||||
run: |
|
run: |
|
||||||
|
|||||||
@@ -158,6 +158,7 @@ jobs:
|
|||||||
is_self_hosted: false
|
is_self_hosted: false
|
||||||
ref: ${{ needs.prepare_release.outputs.release_branch }}
|
ref: ${{ needs.prepare_release.outputs.release_branch }}
|
||||||
install_release_deps: true
|
install_release_deps: true
|
||||||
|
ssh_key: ${{ secrets.WARP_CHANNEL_CONFIG_ACCESS_SSH_KEY }}
|
||||||
|
|
||||||
- name: Ensure rust target is installed
|
- name: Ensure rust target is installed
|
||||||
run: rustup target add ${{ matrix.arch }}-apple-darwin
|
run: rustup target add ${{ matrix.arch }}-apple-darwin
|
||||||
@@ -277,6 +278,7 @@ jobs:
|
|||||||
is_self_hosted: false
|
is_self_hosted: false
|
||||||
ref: ${{ needs.prepare_release.outputs.release_branch }}
|
ref: ${{ needs.prepare_release.outputs.release_branch }}
|
||||||
install_release_deps: true
|
install_release_deps: true
|
||||||
|
ssh_key: ${{ secrets.WARP_CHANNEL_CONFIG_ACCESS_SSH_KEY }}
|
||||||
|
|
||||||
# Install go toolchain, as it may be needed for some build steps.
|
# Install go toolchain, as it may be needed for some build steps.
|
||||||
- name: Setup Go
|
- name: Setup Go
|
||||||
@@ -423,6 +425,7 @@ jobs:
|
|||||||
is_self_hosted: false
|
is_self_hosted: false
|
||||||
ref: ${{ needs.prepare_release.outputs.release_branch }}
|
ref: ${{ needs.prepare_release.outputs.release_branch }}
|
||||||
install_release_deps: true
|
install_release_deps: true
|
||||||
|
ssh_key: ${{ secrets.WARP_CHANNEL_CONFIG_ACCESS_SSH_KEY }}
|
||||||
|
|
||||||
- name: Ensure rust target is installed
|
- name: Ensure rust target is installed
|
||||||
run: rustup target add ${{ matrix.arch }}-apple-darwin
|
run: rustup target add ${{ matrix.arch }}-apple-darwin
|
||||||
@@ -525,6 +528,7 @@ jobs:
|
|||||||
is_self_hosted: false
|
is_self_hosted: false
|
||||||
ref: ${{ needs.prepare_release.outputs.release_branch }}
|
ref: ${{ needs.prepare_release.outputs.release_branch }}
|
||||||
install_release_deps: true
|
install_release_deps: true
|
||||||
|
ssh_key: ${{ secrets.WARP_CHANNEL_CONFIG_ACCESS_SSH_KEY }}
|
||||||
|
|
||||||
# Install gcc 10, as gcc 9.5 has a bug with memcmp that is incompatible
|
# Install gcc 10, as gcc 9.5 has a bug with memcmp that is incompatible
|
||||||
# with aws-lc-rs (see https://gcc.gnu.org/bugzilla/show_bug.cgi?id=95189).
|
# with aws-lc-rs (see https://gcc.gnu.org/bugzilla/show_bug.cgi?id=95189).
|
||||||
@@ -674,6 +678,7 @@ jobs:
|
|||||||
is_self_hosted: false
|
is_self_hosted: false
|
||||||
ref: ${{ needs.prepare_release.outputs.release_branch }}
|
ref: ${{ needs.prepare_release.outputs.release_branch }}
|
||||||
install_release_deps: true
|
install_release_deps: true
|
||||||
|
ssh_key: ${{ secrets.WARP_CHANNEL_CONFIG_ACCESS_SSH_KEY }}
|
||||||
|
|
||||||
# Install gcc 10, as gcc 9.5 has a bug with memcmp that is incompatible
|
# Install gcc 10, as gcc 9.5 has a bug with memcmp that is incompatible
|
||||||
# with aws-lc-rs (see https://gcc.gnu.org/bugzilla/show_bug.cgi?id=95189).
|
# with aws-lc-rs (see https://gcc.gnu.org/bugzilla/show_bug.cgi?id=95189).
|
||||||
@@ -849,6 +854,7 @@ jobs:
|
|||||||
is_self_hosted: false
|
is_self_hosted: false
|
||||||
ref: ${{ needs.prepare_release.outputs.release_branch }}
|
ref: ${{ needs.prepare_release.outputs.release_branch }}
|
||||||
install_release_deps: true
|
install_release_deps: true
|
||||||
|
ssh_key: ${{ secrets.WARP_CHANNEL_CONFIG_ACCESS_SSH_KEY }}
|
||||||
|
|
||||||
# Install gcc 10, as gcc 9.5 has a bug with memcmp that is incompatible
|
# Install gcc 10, as gcc 9.5 has a bug with memcmp that is incompatible
|
||||||
# with aws-lc-rs (see https://gcc.gnu.org/bugzilla/show_bug.cgi?id=95189).
|
# with aws-lc-rs (see https://gcc.gnu.org/bugzilla/show_bug.cgi?id=95189).
|
||||||
@@ -937,6 +943,7 @@ jobs:
|
|||||||
is_self_hosted: false
|
is_self_hosted: false
|
||||||
ref: ${{ needs.prepare_release.outputs.release_branch }}
|
ref: ${{ needs.prepare_release.outputs.release_branch }}
|
||||||
install_release_deps: true
|
install_release_deps: true
|
||||||
|
ssh_key: ${{ secrets.WARP_CHANNEL_CONFIG_ACCESS_SSH_KEY }}
|
||||||
|
|
||||||
# Install gcc 10, as gcc 9.5 has a bug with memcmp that is incompatible
|
# Install gcc 10, as gcc 9.5 has a bug with memcmp that is incompatible
|
||||||
# with aws-lc-rs (see https://gcc.gnu.org/bugzilla/show_bug.cgi?id=95189).
|
# with aws-lc-rs (see https://gcc.gnu.org/bugzilla/show_bug.cgi?id=95189).
|
||||||
@@ -1269,6 +1276,7 @@ jobs:
|
|||||||
target_os: wasm
|
target_os: wasm
|
||||||
is_self_hosted: false
|
is_self_hosted: false
|
||||||
ref: ${{ needs.prepare_release.outputs.release_branch }}
|
ref: ${{ needs.prepare_release.outputs.release_branch }}
|
||||||
|
ssh_key: ${{ secrets.WARP_CHANNEL_CONFIG_ACCESS_SSH_KEY }}
|
||||||
|
|
||||||
- name: Get channel configuration
|
- name: Get channel configuration
|
||||||
id: get-config
|
id: get-config
|
||||||
@@ -1395,6 +1403,7 @@ jobs:
|
|||||||
is_self_hosted: false
|
is_self_hosted: false
|
||||||
ref: ${{ needs.prepare_release.outputs.release_branch }}
|
ref: ${{ needs.prepare_release.outputs.release_branch }}
|
||||||
install_release_deps: true
|
install_release_deps: true
|
||||||
|
ssh_key: ${{ secrets.WARP_CHANNEL_CONFIG_ACCESS_SSH_KEY }}
|
||||||
|
|
||||||
- name: Add arm64 target
|
- name: Add arm64 target
|
||||||
if: ${{ matrix.arch == 'arm64' }}
|
if: ${{ matrix.arch == 'arm64' }}
|
||||||
|
|||||||
Reference in New Issue
Block a user