Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: mirror commits from bazel-examples to downstreams #394

Merged
merged 3 commits into from
Jan 14, 2025
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
39 changes: 39 additions & 0 deletions .github/workflows/sync_mirrors.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
# We maintain mirrors of this repo for demonstrating Aspect Workflows on other CI platforms.
# This is documented in /.aspect/workflows/README.md.
# The primary repo is tested on Buildkite because it's the best
# https://buildkite.com/aspect/bazel-examples
# When commits land there, we sync them to the others:
# CircleCI: https://buildkite.com/aspect/bazel-examples-cci
# GitHub Actions: https://buildkite.com/aspect/bazel-examples-gha
name: Sync Mirrors
on:
workflow_dispatch:
push:
branches: ['main']
jobs:
push-cci:
runs-on: ubuntu-latest
steps:
- name: Get a full history so all commits are present
uses: actions/checkout@v4
with:
path: fresh-clone
fetch-depth: 0
- working-directory: fresh-clone
run: |
eval $(ssh-agent -s)
ssh-add - <<< '${{ secrets.BAZEL_EXAMPLES_CCI_DEPLOY_TOKEN }}'
git push [email protected]:aspect-build/bazel-examples-cci.git HEAD:main
push-gha:
runs-on: ubuntu-latest
steps:
- name: Get a full history so all commits are present
uses: actions/checkout@v4
with:
path: fresh-clone
fetch-depth: 0
- working-directory: fresh-clone
run: |
eval $(ssh-agent -s)
ssh-add - <<< '${{ secrets.BAZEL_EXAMPLES_GHA_DEPLOY_TOKEN }}'
git push [email protected]:aspect-build/bazel-examples-gha.git HEAD:main
Loading