ci: mirror oss:main to ent:oss-mirror

This commit is contained in:
Evan Culver 2021-07-15 11:36:15 -07:00
parent 0527dcff57
commit 5922cd98b2
No known key found for this signature in database
GPG Key ID: 3BBE9838C95315C7
1 changed files with 20 additions and 0 deletions

20
.github/workflows/ent-mirror.yml vendored Normal file
View File

@ -0,0 +1,20 @@
# mirrors main to consul-enterprise:oss-mirror
name: "ent-mirror"
# Runs on pushes to main
on:
push:
branches:
- main
jobs:
ent-mirror:
runs-on: ubuntu-latest
steps:
- name: git-sync
uses: wei/git-sync@v3
with:
source_repo: "https://github.com/hashicorp/consul"
source_branch: "main"
destination_repo: "https://hc-github-team-consul-core:${{ secrets.PUSH_ENT_TOKEN }}@github.com/hashicorp/consul-enterprise.git"
destination_branch: "oss-mirror"