- # sync "public/" to the target production server via SSH
# <condition> to trigger only on a given branch
```
The "deploy_prod" stage shall run only if we're pushing to the main branch.
The `deploy_prod` job shall run only if we're pushing to the main branch.
:bulb: If you followed the [Ansible exercise](https://gitedu.hesge.ch/lsds/teaching/bachelor/cloud-and-deployment/lab-ansible), you're encouraged to integrate it into the deploy stage. Otherwise, a simple remote copy via `scp` or `rsync` suffices.
:bulb: If you followed the [Ansible exercise](https://gitedu.hesge.ch/lsds/teaching/bachelor/cloud-and-deployment/lab-ansible), you're encouraged to integrate it into the `deploy` stage. Otherwise, a simple remote copy via `scp` or `rsync` suffices.