Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[WJ-994] Fix deploy GitHub actions #1895

Merged
merged 14 commits into from
Apr 26, 2024
23 changes: 9 additions & 14 deletions .github/workflows/docker-build-push-api.dev.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: '[backend] Docker push API'
name: '[deploy] Docker push Deepwell'

on:
push:
Expand All @@ -14,18 +14,13 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v2

- name: Set up deployment environment
run: |
echo "$DOKKU_DEPLOY_KEY" > ~/.ssh/ssh-deploy
chmod 400 ~/.ssh/ssh-deploy
echo 'Host wikijump.dev' >> ~/.ssh/config
echo ' HostName wikijump.dev' >> ~/.ssh/config
echo ' User linuxuser' >> ~/.ssh/config
echo ' IdentityFile ~/.ssh/ssh-deploy' >> ~/.ssh/config
echo ' IdentitiesOnly yes' >> ~/.ssh/config
git remote add dokku [email protected]:deepwell
uses: actions/checkout@v4
with:
fetch-depth: 0

- name: Deploy to Dokku
run: git push dokku HEAD:master
uses: dokku/github-action@master
with:
ssh_private_key: ${{ secrets.DOKKU_DEPLOY_KEY }}
git_remote_url: 'ssh://[email protected]:22/deepwell'
git_push_flags: --force --verbose
23 changes: 9 additions & 14 deletions .github/workflows/docker-build-push-web.dev.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: '[backend] Docker push Framerail'
name: '[deploy] Docker push Framerail'

on:
push:
Expand All @@ -14,18 +14,13 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v2

- name: Set up deployment environment
run: |
echo "$DOKKU_DEPLOY_KEY" > ~/.ssh/ssh-deploy
chmod 400 ~/.ssh/ssh-deploy
echo 'Host wikijump.dev' >> ~/.ssh/config
echo ' HostName wikijump.dev' >> ~/.ssh/config
echo ' User linuxuser' >> ~/.ssh/config
echo ' IdentityFile ~/.ssh/ssh-deploy' >> ~/.ssh/config
echo ' IdentitiesOnly yes' >> ~/.ssh/config
git remote add dokku [email protected]:framerail
uses: actions/checkout@v4
with:
fetch-depth: 0

- name: Deploy to Dokku
run: git push dokku HEAD:master
uses: dokku/github-action@master
with:
ssh_private_key: ${{ secrets.DOKKU_DEPLOY_KEY }}
git_remote_url: 'ssh://[email protected]:22/framerail'
git_push_flags: --force --verbose