Files
stellaamor.com/.gitea/workflows/smoke.yml
Workflow config file is invalid. Please check your config file: yaml: line 39: could not find expected ':'
eddie e63b3cf525
Some checks failed
Deploy (stellaamor) / deploy (push) Has been cancelled
Add .gitea/workflows/smoke.yml
2025-10-07 18:07:53 -04:00

43 lines
1.2 KiB
YAML

name: Smoke (SSH + layout)
on:
workflow_dispatch:
push:
branches: [ "ci/smoke" ]
jobs:
smoke:
runs-on: [ self-hosted, mainhost, docker ]
env:
APP_ROOT: /var/www/stellaamor
UPLOADS_DIR: uploads
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Write SSH key
run: |
umask 077
printf "%s" "${{ secrets.SSH_KEY }}" > ~/.ssh/id_ed25519
if [ -n "${{ secrets.SSH_KNOWN_HOSTS }}" ]; then
printf "%s\n" "${{ secrets.SSH_KNOWN_HOSTS }}" > ~/.ssh/known_hosts
else
echo "StrictHostKeyChecking no" >> ~/.ssh/config
fi
- name: Ping server
run: ssh -i ~/.ssh/id_ed25519 ${{ secrets.SSH_USER }}@${{ secrets.SSH_HOST }} 'echo ok'
- name: Ensure layout (no deploy yet)
run: |
ssh -i ~/.ssh/id_ed25519 ${{ secrets.SSH_USER }}@${{ secrets.SSH_HOST }} "
set -e
install -d -m 755 ${APP_ROOT}/releases ${APP_ROOT}/shared ${APP_ROOT}/shared/${UPLO
ADS_DIR}
echo smoke-$(date -u +%FT%TZ) > ${APP_ROOT}/shared/ci-smoke.txt
ls -la ${APP_ROOT} ${APP_ROOT}/shared
"