Adding smtp url as a secret and sending from techops @ cosocial.ca
Deploy PDS / deploy (push) Canceled after 0s
Deploy PDS / deploy (push) Canceled after 0s
This commit is contained in:
1 parent
6428560093
commit
c11ce119d4
2 files changed
+8
No files matched your search
@@ -56,6 +56,11 @@ jobs:
|
|||||||
if [ -n "${{ vars.PDS_PRIMARY_COLOR }}" ]; then
|
if [ -n "${{ vars.PDS_PRIMARY_COLOR }}" ]; then
|
||||||
echo "pds_primary_color: \"${{ vars.PDS_PRIMARY_COLOR }}\"" >> vars/main.yml
|
echo "pds_primary_color: \"${{ vars.PDS_PRIMARY_COLOR }}\"" >> vars/main.yml
|
||||||
fi
|
fi
|
||||||
|
# Optional: email/SMTP
|
||||||
|
if [ -n "${{ secrets.SMTP_URL }}" ]; then
|
||||||
|
echo "pds_email_smtp_url: ${{ secrets.SMTP_URL }}" >> vars/main.yml
|
||||||
|
fi
|
||||||
|
echo "pds_email_from_address: techops@cosocial.ca" >> vars/main.yml
|
||||||
|
|
||||||
- name: Run playbook
|
- name: Run playbook
|
||||||
run: |
|
run: |
|
||||||
|
|||||||
@@ -201,6 +201,8 @@ Auto-deploys on push to `main`. Set up these in Gitea repo settings (Settings >
|
|||||||
| `PDS_SERVICE_NAME` | *(optional)* PDS display name for branding |
|
| `PDS_SERVICE_NAME` | *(optional)* PDS display name for branding |
|
||||||
| `PDS_PRIMARY_COLOR` | *(optional)* Primary color (hex) for branding |
|
| `PDS_PRIMARY_COLOR` | *(optional)* Primary color (hex) for branding |
|
||||||
|
|
||||||
|
Outgoing emails are sent from `techops@cosocial.ca` (fixed in the workflow).
|
||||||
|
|
||||||
**Secrets** (sensitive credentials):
|
**Secrets** (sensitive credentials):
|
||||||
|
|
||||||
| Secret | Description |
|
| Secret | Description |
|
||||||
@@ -208,5 +210,6 @@ Auto-deploys on push to `main`. Set up these in Gitea repo settings (Settings >
|
|||||||
| `SSH_PRIVATE_KEY` | Private SSH key for the `sysadmin` user on the target server |
|
| `SSH_PRIVATE_KEY` | Private SSH key for the `sysadmin` user on the target server |
|
||||||
| `OVH_S3_ACCESS_KEY` | OVH S3 access key for blob storage |
|
| `OVH_S3_ACCESS_KEY` | OVH S3 access key for blob storage |
|
||||||
| `OVH_S3_SECRET_KEY` | OVH S3 secret key for blob storage |
|
| `OVH_S3_SECRET_KEY` | OVH S3 secret key for blob storage |
|
||||||
|
| `SMTP_URL` | *(optional)* SMTP URL with credentials (e.g., `smtps://user:pass@smtp.example.com/`) |
|
||||||
|
|
||||||
The workflow installs Ansible, writes the SSH key from a secret, generates `inventory.yml` and `vars/main.yml` from vars and secrets, and runs the playbook.
|
The workflow installs Ansible, writes the SSH key from a secret, generates `inventory.yml` and `vars/main.yml` from vars and secrets, and runs the playbook.
|
||||||
Reference in new issue
Block a user