tei.su/.forgejo/workflows/publish.yaml

62 lines
1.6 KiB
YAML
Raw Normal View History

2025-01-04 02:50:49 +03:00
name: Publish and deploy
on:
push:
branches: [ main ]
workflow_dispatch:
concurrency:
group: deploy
cancel-in-progress: true
jobs:
# publish:
# if: github.repository == 'teidesu/tei.su' # do not run on forks
# runs-on: docker-dind
# permissions:
# contents: write
# packages: write
# steps:
# - name: Checkout
# uses: actions/checkout@v4
# - name: Prepare
# env:
# DONATE_PAGE_DATA: ${{ vars.DONATE_PAGE_DATA }}
# run: |
# echo "$DONATE_PAGE_DATA" > src/components/pages/PageDonate/data.json
# /opt/start-dockerd.sh
# - name: Login to GitHub Container Registry
# uses: docker/login-action@v3
# with:
# registry: git.stupid.fish
# username: ${{ github.actor }}
# password: ${{ secrets.PACKAGES_PAT }}
# - name: Docker meta
# id: meta
# uses: docker/metadata-action@v5
# with:
# images: git.stupid.fish/teidesu/tei.su
# tags: type=sha
# flavor: latest=true
# - name: Build and push
# uses: docker/build-push-action@v5
# with:
# context: .
# push: true
# platforms: linux/amd64
# tags: ${{ steps.meta.outputs.tags }}
# labels: ${{ steps.meta.outputs.labels }}
deploy:
runs-on: node22
# needs: publish
steps:
- uses: https://github.com/teidesu/desu-deploy@main
with:
key: ${{ secrets.DESU_DEPLOY_KEY }}
server: ${{ secrets.KOI_IP }}
service: teisu