pixie-oss-copybara #367
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: gcr.io/pixie-oss/pixie-dev-public/copybara:20210420 | |
| 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.COPYBARA_GPG_KEY }} | |
| COPYBARA_GPG_KEY_ID: ${{ secrets.COPYBARA_GPG_KEY_ID }} | |
| # ac4d4e38c1a03b750045211335a682b11443fb56 is when fork started | |
| # This is only needed for the first copybara run | |
| run: > | |
| GIT_SSH_COMMAND='ssh -o UserKnownHostsFile=/dev/null -o StrictHostKeyChecking=no -i /tmp/sshkey' | |
| ./ci/run_copybara.sh private/tools/copybara/copy.bara.sky --last-rev ac4d4e38c1a03b750045211335a682b11443fb56 |