Skip to content

armgit / mwmbl

Public Imported from GitHub
0

An open source, non-profit web search engine

Deploy to dokku on merge

Daoud Clarke448a8852bc3b
diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml
new file mode 100644
index 0000000..2e3ec17
--- /dev/null
+++ b/.github/workflows/deploy.yml
@@ -0,0 +1,47 @@
+# .github/workflows/deploy.yml
+
+name: Deploy to Dokku
+
+on:
+ push:
+ branches:
+ - main
+
+jobs:
+ deploy:
+ name: Deploy to Dokku
+ runs-on: ubuntu-latest
+
+ steps:
+ - name: Checkout code
+ uses: actions/checkout@v4
+
+ - name: Set up SSH
+ uses: webfactory/[email protected]
+ with:
+ ssh-private-key: ${{ secrets.SSH_PRIVATE_KEY }}
+
+ - name: Deploy mwmbl.org
+ run: |
+ git remote add dokku-mwmbl-org [email protected]:mwmbl.org
+ git push dokku-mwmbl-org main:master --force
+
+ - name: Deploy api.mwmbl.org
+ run: |
+ git remote add dokku-api-mwmbl-org [email protected]:api.mwmbl.org
+ git push dokku-api-mwmbl-org main:master --force
+
+ - name: Deploy mwmbl-count-urls
+ run: |
+ git remote add dokku-mwmbl-count-urls [email protected]:mwmbl-count-urls
+ git push dokku-mwmbl-count-urls main:master --force
+
+ - name: Deploy mwmbl-update-batches
+ run: |
+ git remote add dokku-mwmbl-update-batches [email protected]:mwmbl-update-batches
+ git push dokku-mwmbl-update-batches main:master --force
+
+ - name: Deploy mwmbl-update-urls
+ run: |
+ git remote add dokku-mwmbl-update-urls [email protected]:mwmbl-update-urls
+ git push dokku-mwmbl-update-urls main:master --force