Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
36 changes: 36 additions & 0 deletions .github/sync-staging-repo.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
devstream-io/dtm-gitlab-share-library:
- source: staging/dtm-gitlab-share-library/
dest: .
deleteOrphaned: true
devstream-io/dtm-jenkins-share-library:
- source: staging/dtm-jenkins-share-library/
dest: .
deleteOrphaned: true
devstream-io/dtm-pipeline-templates:
- source: staging/dtm-pipeline-templates/
dest: .
deleteOrphaned: true
devstream-io/dtm-repo-scaffolding-golang:
- source: staging/dtm-repo-scaffolding-golang/
dest: .
deleteOrphaned: true
devstream-io/dtm-repo-scaffolding-golang-cli:
- source: staging/dtm-repo-scaffolding-golang-cli/
dest: .
deleteOrphaned: true
devstream-io/dtm-repo-scaffolding-golang-gin:
- source: staging/dtm-repo-scaffolding-golang-gin/
dest: .
deleteOrphaned: true
devstream-io/dtm-repo-scaffolding-java-springboot:
- source: staging/dtm-repo-scaffolding-java-springboot/
dest: .
deleteOrphaned: true
devstream-io/dtm-repo-scaffolding-python:
- source: staging/dtm-repo-scaffolding-python/
dest: .
deleteOrphaned: true
devstream-io/dtm-repo-scaffolding-python-flask:
- source: staging/dtm-repo-scaffolding-python-flask/
dest: .
deleteOrphaned: true
24 changes: 24 additions & 0 deletions .github/workflows/sync-staging-repo.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
name: Sync Staging Files to Other Repos
on:
push:
branches: [ main ]
paths:
- staging/**
- .github/workflows/sync-staging-repo.yml
- .github/sync-staging-repo.yml
workflow_dispatch:

jobs:
sync:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Run GitHub File Sync
uses: BetaHuhn/[email protected]
with:
GH_PAT: ${{ secrets.GH_PAT }}
CONFIG_PATH: .github/sync-staging-repo.yml
ORIGINAL_MESSAGE: true
SKIP_PR: true
COMMIT_EACH_FILE: false
19 changes: 19 additions & 0 deletions staging/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
# Staging Repos

This directory contains the staging repositories for the Devstream project.

Each sub folder under `staging/` be synchronized to the repository of the same name under devstream-io.

## How to Create a New Staging Repo

Person who wants to create a new staging repo:

1. Create a new directory under `staging/` with the name of the repo you want to create.
2. Update [`.github/sync-staging-repo.yml`](../.github/sync-staging-repo.yml).
3. Pull Request to the `main` branch of repo `devstream-io/devstream`.

Reviewers:

1. Review the PR, make sure everything is correct, and do not merge it immediately.
2. Create the repo under the `devstream-io` organization and **create a branch for the repo**. If you don't have the permission to create a repo, please ask for the members of the `devstream-io`.
3. Merge the PR.