-
Notifications
You must be signed in to change notification settings - Fork 517
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Signed-off-by: Ryan Northey <[email protected]>
- Loading branch information
Showing
4 changed files
with
56 additions
and
35 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
name: CI Build and Test | ||
|
||
on: | ||
workflow_call: | ||
secrets: | ||
app-id: | ||
app-key: | ||
inputs: | ||
sync: | ||
type: boolean | ||
default: true | ||
|
||
jobs: | ||
sync: | ||
runs-on: ubuntu-22.04 | ||
steps: | ||
- id: appauth | ||
if: ${{ inputs.sync }} | ||
uses: envoyproxy/toolshed/gh-actions/[email protected] | ||
with: | ||
key: ${{ secrets.app-key }} | ||
app_id: ${{ secrets.app-id }} | ||
- name: 'Checkout go-control-plane repository' | ||
uses: actions/checkout@v4 | ||
with: | ||
path: go-control-plane | ||
fetch-depth: ${{ ! inputs.sync && 1 || 0 }} | ||
token: ${{ steps.appauth.outputs.token || secrets.GITHUB_TOKEN }} | ||
- name: 'Checkout Envoy repository' | ||
uses: actions/checkout@v4 | ||
with: | ||
repository: envoyproxy/envoy | ||
fetch-depth: ${{ ! inputs.sync && 1 || 0 }} | ||
path: envoy | ||
- run: ci/sync_envoy.sh | ||
env: | ||
ENVOY_SRC_DIR: ../envoy | ||
NO_COMMIT_CHANGES: ${{ ! inputs.sync && '1' || '' }} | ||
working-directory: go-control-plane |
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 |
---|---|---|
@@ -1,50 +1,25 @@ | ||
name: Sync Envoy | ||
|
||
permissions: | ||
contents: read | ||
|
||
on: | ||
workflow_dispatch: | ||
|
||
concurrency: | ||
group: ${{ github.workflow }} | ||
cancel-in-progress: true | ||
|
||
permissions: | ||
contents: read | ||
|
||
jobs: | ||
sync: | ||
runs-on: ubuntu-22.04 | ||
permissions: | ||
contents: write | ||
if: | | ||
${{ | ||
!contains(github.actor, '[bot]') | ||
|| github.actor == 'sync-envoy[bot]' | ||
}} | ||
steps: | ||
- id: appauth | ||
uses: envoyproxy/toolshed/gh-actions/[email protected] | ||
with: | ||
key: ${{ secrets.ENVOY_CI_UPDATE_BOT_KEY }} | ||
app_id: ${{ secrets.ENVOY_CI_UPDATE_APP_ID }} | ||
|
||
# Checkout the repo | ||
- name: 'Checkout Repository' | ||
uses: actions/checkout@v4 | ||
with: | ||
ref: main | ||
fetch-depth: 0 | ||
token: ${{ steps.appauth.outputs.token }} | ||
|
||
# Checkout the Envoy repo | ||
- name: 'Checkout Repository' | ||
uses: actions/checkout@v4 | ||
with: | ||
repository: envoyproxy/envoy | ||
ref: main | ||
fetch-depth: 0 | ||
path: upstream | ||
|
||
- run: mv upstream ../envoy | ||
- run: ci/sync_envoy.sh | ||
env: | ||
ENVOY_SRC_DIR: ../envoy | ||
uses: ./.github/workflows/_sync.yml | ||
secrets: | ||
app-id: ${{ secrets.ENVOY_CI_UPDATE_APP_ID }} | ||
app-key: ${{ secrets.ENVOY_CI_UPDATE_BOT_KEY }} |
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