Files
Hy2026/.gitea/workflows/cd.yml
T
Workflow config file is invalid. Please check your config file: model.ReadWorkflow: EOF
Rafał Tyński 6c78351a95 ci: add disabled Gitea Actions CI/CD workflows
Add CI and CD workflows for backend, frontend and image publishing. The workflows are fully commented out because no Gitea Actions runner is attached; uncomment once a runner is registered.
2026-10-04 00:57:40 +02:00

51 lines
2.0 KiB
YAML

# CD workflow — DISABLED.
# No Gitea Actions runner is attached to this repository yet, so the workflow
# below is fully commented out to avoid failing runs. Uncomment everything once
# a runner is registered (repository Settings -> Actions -> Runners).
# name: CD
#
# on:
# push:
# branches: [main]
# tags: ["v*"]
#
# jobs:
# publish:
# runs-on: ubuntu-latest
# steps:
# - uses: actions/checkout@v4
# - name: Read version
# id: version
# run: |
# VERSION=$(sed -n 's:.*<Version>\(.*\)</Version>.*:\1:p' backend/TarninaHub.csproj | head -1)
# echo "version=$VERSION" >> "$GITHUB_OUTPUT"
# - name: Log in to registry
# run: echo "${{ secrets.GITEA_TOKEN }}" | docker login git.rtynski.pl -u "${{ github.actor }}" --password-stdin
# - name: Build image
# run: |
# docker build \
# --build-arg APP_VERSION=${{ steps.version.outputs.version }} \
# -t git.rtynski.pl/rtynski/hy2026:${{ steps.version.outputs.version }} \
# -t git.rtynski.pl/rtynski/hy2026:latest .
# - name: Push image
# run: |
# docker push git.rtynski.pl/rtynski/hy2026:${{ steps.version.outputs.version }}
# docker push git.rtynski.pl/rtynski/hy2026:latest
#
# # Deploy demo runs after the image is published from `main`.
# # Configure DEPLOY_HOST / DEPLOY_USER / DEPLOY_SSH_KEY as CI secrets.
# # deploy:
# # needs: publish
# # if: github.ref == 'refs/heads/main'
# # runs-on: ubuntu-latest
# # steps:
# # - name: Deploy over SSH
# # run: |
# # echo "${{ secrets.DEPLOY_SSH_KEY }}" > key && chmod 600 key
# # ssh -i key -o StrictHostKeyChecking=no \
# # "${{ secrets.DEPLOY_USER }}@${{ secrets.DEPLOY_HOST }}" \
# # "cd /opt/tarninahub && APP_VERSION=latest docker compose pull && docker compose up -d"
# # - name: Smoke test
# # run: curl -fsS "http://${{ secrets.DEPLOY_HOST }}:8075/api/health"