Skip to content

Commit

Permalink
Split cd (#661)
Browse files Browse the repository at this point in the history
  • Loading branch information
TheFehr authored Nov 17, 2023
1 parent c1654ad commit 80e1162
Show file tree
Hide file tree
Showing 2 changed files with 38 additions and 1 deletion.
37 changes: 37 additions & 0 deletions .github/workflows/cd_develop.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
name: "Better-Dime CD"

on:
push:
branches: [ develop ]
workflow_dispatch:

jobs:
develop:
runs-on: ubuntu-latest
environment: develop

steps:
- uses: actions/checkout@v3
with:
fetch-depth: 0

- name: "Setup the SSH known hosts file"
run: |
mkdir -p -m 0700 /home/runner/.ssh
echo $HOST_KEY >> /home/runner/.ssh/known_hosts
chmod 600 /home/runner/.ssh/known_hosts
env:
HOST_KEY: ${{ secrets.SSH_HOST_KEY }}

- uses: webfactory/[email protected]
with:
ssh-private-key: ${{ secrets.SSH_PRIVATE_KEY }}

- name: Add remote
run: git remote add metanet [email protected]:~/git/better-dime/develop.git

- name: Push
run: git push -f metanet $BRANCH_NAME:master
env:
BRANCH_NAME: ${{ github.ref_name }}

Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ name: "Better-Dime CD"

on:
push:
branches: [ master, develop ]
branches: [ master ]
workflow_dispatch:

jobs:
Expand Down

0 comments on commit 80e1162

Please sign in to comment.