This project uses GitHub Actions for continuous integration and deployment to the dev.sanad.selimsalman.de development server.
For the development environment, we've minimized the required secrets to just:
SSH_PRIVATE_KEY: The SSH private key for deployment user with access to the serverDEPLOY_USER: The SSH username on the deployment server
- Go to your GitHub repository
- Click on "Settings" tab
- Click on "Secrets and variables" → "Actions" in the left sidebar
- Click on "New repository secret" to add each secret
If you need to generate a new SSH key for deployment:
# Generate a key
ssh-keygen -t ed25519 -C "github-deploy-key"
# Copy the public key to the server
ssh-copy-id -i ~/.ssh/id_ed25519.pub user@selimsalman.de
# Copy the private key to add as a GitHub secret
cat ~/.ssh/id_ed25519Make sure the user has appropriate permissions on the server.
The development server needs to have:
- Docker and Docker Compose installed
- A directory at
/var/www/dev.sanad.selimsalman.de(or change DEPLOY_PATH in the workflow) - Proper domain configuration for dev.sanad.selimsalman.de
The deployment is triggered when code is pushed to the develop branch. The workflow:
- Builds the frontend and prepares the backend
- Deploys to the development server
- Uses simplified configuration with non-sensitive default values
- Runs the application in development mode using
dev.sh --local