ruby rework with contact form
All checks were successful
Build and Deploy to Production / build (push) Successful in 51s
Build and Deploy to Production / deploy (push) Successful in 34s

This commit is contained in:
Sergei Poljanski 2026-05-05 00:45:27 +04:00
commit 1ab09043ee
Signed by: asxpi
GPG key ID: 4F8851660FA4121B
26 changed files with 932 additions and 221 deletions

View file

@ -56,6 +56,32 @@ jobs:
SOURCE: "docker-compose.yml"
TARGET: "/opt/asxpio/"
- name: Deploy .env from secrets
uses: appleboy/ssh-action@v1.2.3
env:
SESSION_SECRET: ${{ secrets.SESSION_SECRET }}
SMTP_PASSWORD: ${{ secrets.SMTP_PASSWORD }}
with:
host: ${{ secrets.DEPLOY_IP }}
username: ${{ secrets.DEPLOY_USER }}
key: ${{ secrets.DEPLOY_SSH_KEY }}
envs: SESSION_SECRET,SMTP_PASSWORD
script_stop: true
script: |
umask 077
mkdir -p /opt/asxpio
cat > /opt/asxpio/.env <<EOF
RACK_ENV=production
SESSION_SECRET=${SESSION_SECRET}
SMTP_ADDR=smtp.fastmail.com
SMTP_PORT=587
SMTP_USER=me@asxp.io
SMTP_PASSWORD=${SMTP_PASSWORD}
MAIL_FROM=IE Sergei Poljanski Contact Form <me@asxp.io>
MAIL_TO=ie@asxp.io
EOF
chmod 600 /opt/asxpio/.env
- name: Deploy and update container
uses: appleboy/ssh-action@v1.2.3
env: