Skip to content

Commit

Permalink
Move CI to GitLab
Browse files Browse the repository at this point in the history
  • Loading branch information
snglth committed Sep 14, 2023
1 parent b395762 commit f68cd35
Show file tree
Hide file tree
Showing 3 changed files with 32 additions and 15 deletions.
15 changes: 0 additions & 15 deletions .github/workflows/commmunity-theme-tutor.yml

This file was deleted.

23 changes: 23 additions & 0 deletions .github/workflows/sync.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
name: Sync with private repo

on:
push:
branches: [ community-theme.palm ]

jobs:
sync:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
with:
fetch-depth: 0
- name: Sync to GitLab
run: |
mkdir -p ~/.ssh && chmod 700 ~/.ssh
eval $(ssh-agent -s)
echo "${{ secrets.GITLAB_KNOWN_HOSTS }}" > ~/.ssh/known_hosts && chmod 644 ~/.ssh/known_hosts
echo "${{ secrets.COMMUNITY_THEME_SSH_PRIVATE_KEY }}" | ssh-add -
git remote add gitlab $GITLAB_REPOSITORY
git push gitlab $GITHUB_REF
env:
GITLAB_REPOSITORY: [email protected]:abstract-germany/community-theme/community-theme-header.git
9 changes: 9 additions & 0 deletions .gitlab-ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
trigger_job:
trigger:
project: abstract-germany/community-theme/community-theme-tutor
branch: main
rules:
- if: '$CI_PIPELINE_SOURCE == "merge_request_event"'
when: never
- if: '$CI_COMMIT_BRANCH == "community-theme.palm"'
when: always

0 comments on commit f68cd35

Please sign in to comment.