From b88cba1a44194cdcfe06f1fcc948ca1d09644ce1 Mon Sep 17 00:00:00 2001 From: tienngo Date: Sat, 7 Feb 2026 06:42:57 +0000 Subject: [PATCH] Add .gitea/workflows/deploy-direct.example.yml --- .gitea/workflows/deploy-direct.example.yml | 27 ++++++++++++++++++++++ 1 file changed, 27 insertions(+) create mode 100644 .gitea/workflows/deploy-direct.example.yml diff --git a/.gitea/workflows/deploy-direct.example.yml b/.gitea/workflows/deploy-direct.example.yml new file mode 100644 index 0000000..efb9662 --- /dev/null +++ b/.gitea/workflows/deploy-direct.example.yml @@ -0,0 +1,27 @@ +name: Deploy Direct (Example) + +"on": + workflow_dispatch: + inputs: + runner: + description: Runner label (use self-hosted label for real deploy) + required: true + default: ubuntu-latest + image: + description: Image to deploy (registry/repo:tag) + required: true + +jobs: + deploy: + runs-on: ${{ inputs.runner }} + + steps: + - name: Checkout + uses: actions/checkout@v4 + + - name: Compose Up + uses: tienngo/ci-templates/.gitea/actions/compose-up@main + with: + image: ${{ inputs.image }} + workdir: . + compose_args: up -d --pull always --remove-orphans