-
Notifications
You must be signed in to change notification settings - Fork 179
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add support for private builds in CI
- Loading branch information
1 parent
4162017
commit ea28672
Showing
3 changed files
with
73 additions
and
2 deletions.
There are no files selected for viewing
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
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
name: "Private Build Setup" | ||
description: "Checks and configures the environment for building private dependencies" | ||
inputs: | ||
cadence_deploy_key: | ||
description: "Deploy Key for Private Cadence Repo" | ||
required: true | ||
go_private_value: | ||
description: "The value for GOPRIVATE" | ||
required: false | ||
default: "github.com/onflow/*-internal" | ||
runs: | ||
using: "composite" | ||
steps: | ||
- name: Load deploy key | ||
uses: webfactory/[email protected] | ||
with: | ||
ssh-private-key: "${{ inputs.cadence_deploy_key }}" | ||
known-hosts: "github.com" | ||
|
||
- name: Configure git for SSH | ||
shell: bash | ||
run: | | ||
git config --global url."[email protected]:".insteadOf "https://github.com/" | ||
- name: Configure GOPRIVATE env | ||
shell: bash | ||
run: | | ||
echo "GOPRIVATE=${{ inputs.go_private_value }}" >> $GITHUB_ENV | ||