Skip to content

Commit bbf6b50

Browse files
changlanGitHub Enterprise
authored andcommitted
[Internal] Rio workflow to push code to OSS (#1526)
Triggered every time when there is a new push to main.
1 parent 750cd40 commit bbf6b50

File tree

1 file changed

+17
-0
lines changed

1 file changed

+17
-0
lines changed

rio.yaml

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -112,6 +112,23 @@ pipelines:
112112
- git fetch origin && git checkout origin/apple-rio -- publish.sh
113113
- ./publish.sh --repository=apple-pypi --name_suffix=nightly --version_suffix="dev$(date '+%Y%m%d%H%M%S')"
114114

115+
# Push codebase to external using Copybara.
116+
- name: push-oss
117+
branchName: main
118+
machine:
119+
baseImage: openjdk:26-slim-bullseye
120+
env:
121+
DOCKER_BUILDKIT: "1"
122+
trigger:
123+
gitPush: true
124+
build:
125+
template: freestyle:v4:build
126+
steps:
127+
- export SSH_AUTH_SOCK=${SSH_AUTH_SOCK_DEPLOY_KEY}
128+
- apt update && apt install -y wget
129+
- wget https://github.com/google/copybara/releases/download/v20250721/copybara_deploy.jar
130+
- java -jar copybara_deploy.jar copy.bara.sky push
131+
115132
# Publish pypi package to PUBLIC testing repo. Must be triggered manually.
116133
- name: PUBLIC-pypi-test
117134
branchName: main

0 commit comments

Comments
 (0)