Skip to content

Commit

Permalink
chore(ci): add deployfor production
Browse files Browse the repository at this point in the history
  • Loading branch information
hugotiburtino committed Jan 31, 2025
1 parent 31e6d45 commit bee60a0
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ name: Deploy to Uberspace
on:
push:
branches:
- production
- staging
- development

Expand All @@ -25,6 +26,14 @@ jobs:
echo "REMOTE_USER=${{ secrets.REMOTE_USER_STAGING }}" >> $GITHUB_ENV
echo "DOMAIN=https://editor.serlo-staging.dev/" >> $GITHUB_ENV
- name: Set environment variables for production
if: ${{ github.ref_name == 'staging' }}
run: |
echo "REMOTE_HOST=${{ secrets.REMOTE_HOST_PRODUCTION }}" >> $GITHUB_ENV
echo "REMOTE_USER=${{ secrets.REMOTE_USER_PRODUCTION }}" >> $GITHUB_ENV
echo "DOMAIN=https://editor.serlo.org/" >> $GITHUB_ENV
# Maybe split ssh key between production and others
- name: Deploy to Server
uses: appleboy/[email protected]
with:
Expand Down

0 comments on commit bee60a0

Please sign in to comment.