pixie-oss-copybara #146
This file contains hidden or 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
| --- | |
| name: pixie-oss-copybara | |
| on: | |
| workflow_dispatch: | |
| schedule: | |
| - cron: '0 15 * * *' | |
| permissions: | |
| contents: read | |
| jobs: | |
| run-copybara: | |
| runs-on: ubuntu-latest | |
| container: | |
| # image built from upstream's 9675cc2a commit with ssh added | |
| image: ghcr.io/k8sstormcenter/copybara:9675cc2a-ssh | |
| steps: | |
| - uses: actions/checkout@8f4b7f84864484a7bf31766abe9204da3cbe65b3 # v3.5.0 | |
| - id: create-ssh-key | |
| env: | |
| COPYBARA_SSH_KEY: ${{ secrets.COPYBARA_SSH_KEY }} | |
| run: echo "$COPYBARA_SSH_KEY" > /tmp/sshkey && chmod 600 /tmp/sshkey | |
| - id: pxapi-copybara | |
| env: | |
| COPYBARA_GPG_KEY: ${{ secrets.BUILDBOT_GPG_KEY_B64 }} | |
| COPYBARA_GPG_KEY_ID: ${{ secrets.BUILDBOT_GPG_KEY_ID }} | |
| # 9ae660bce072d1bc1dfbbddada333c88333f4a9a is when fork started | |
| # This is only needed for the first copybara run (supplied via --last-rev ${sha} flag) | |
| run: > | |
| GIT_SSH_COMMAND='ssh -o UserKnownHostsFile=/dev/null -o StrictHostKeyChecking=no -i /tmp/sshkey' | |
| ./ci/private/run_copybara.sh tools/private/copybara/copy.bara.sky |