Add CI for gerrit-to-github-bot

* Adding CI to enable github mirroring
* Adding noop job for now. will add real jobs once
  we have some tox config and unit tests defined

Change-Id: Id49240b1d8938e8b6cee8fa29228243781677008
This commit is contained in:
siraj.yasin 2021-02-11 16:48:52 +00:00
parent 171b11a5f6
commit 6f957c39b0
3 changed files with 103 additions and 0 deletions

22
zuul.d/jobs.yaml Normal file
View File

@ -0,0 +1,22 @@
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
- job:
name: airship-g2gbot-upload-git-mirror
parent: upload-git-mirror
description: Mirrors airship/gerrit-to-github-bot to airshipit/gerrit-to-github-bot
vars:
git_mirror_repository: airshipit/gerrit-to-github-bot
secrets:
- name: git_mirror_credentials
secret: airship_g2gbot_airshipit_github_secret
pass-to-parent: true

22
zuul.d/projects.yaml Normal file
View File

@ -0,0 +1,22 @@
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
- project:
check:
jobs:
- noop
gate:
jobs:
- noop
post:
jobs:
- airship-g2gbot-upload-git-mirror

59
zuul.d/secrets.yaml Normal file
View File

@ -0,0 +1,59 @@
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
- secret:
name: airship_g2gbot_airshipit_github_secret
data:
user: git
host: github.com
host_key: github.com ssh-rsa AAAAB3NzaC1yc2EAAAABIwAAAQEAq2A7hRGmdnm9tUDbO9IDSwBK6TbQa+PXYPCPy6rbTrTtw7PHkccKrpp0yVhp5HdEIcKr6pLlVDBfOLX9QUsyCOV0wzfjIJNlGEYsdlLJizHhbn2mUjvSAHQqZETYP81eFzLQNnPHt4EVVUh7VfDESU84KezmD5QlWpXLmvU31/yMf+Se8xhHTvKSCZIFImWwoG6mbUoWf9nzpIoaSjB+weqqUUmpaaasXVal72J+UX2B+2RPW3RcT0eOzQgqlJL3RKrTJvdsjE3JEAvGq3lGHSZXy28G3skua2SmVi/w4yCE6gbODqnTWlg7+wC604ydGXA8VJiS5ap43JXiUFFAaQ==
ssh_key: !encrypted/pkcs1-oaep
- mWGYftOnEvw6yRommTdxzpCAq/aIoy4IbKy9TyQs4vzY7kXBG/zQ1uA3pni8wELkaobn5
oEnelH+cVfGNA6NdzaCzfWlt5aBkVBJ9ya6rNrycnuGYaMRitudiz4Be/YJW62SDbyOWX
EJd70qY+xjaUgR060ba+nIpS+HBhL1tu/LvaV4EMb4w+jpAZ8RA7w8ao8ril7eImFLlvP
mZ3m939wKUXCE5sEd8j82ItpNgqjGgbrZAJZaWycE0yCDQFQkgJ+7M421zULy4i+/+DfT
gEXbqshugaG41ChhryUEujPeqqX/1waY2FfUI3vLdSJxzbgAfdPSsJ1kMt39ZPuvYL4Bm
K46k/9ZWD2c2wcSemrZLJyngVmH+33DmbZX5+yclbF6tuKPBTHoDSROXcE6bl/S7tC8ux
JUTrfuAJSHfbSvIoyCbTGtPhcyDnplYOLLGSc/VX9kX4oaLgvMQS62uDDaWHP7/ZYxPuW
DimG/gko3iP0/rwcl5Ly1WUZrBNt38e7/GfYqPJYMvpXCFbS40JqlSz4kNxl886Iw80D/
Zw7GvWJ9mp+gs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