Add .gitea/workflows/deploy-direct.example.yml
This commit is contained in:
27
.gitea/workflows/deploy-direct.example.yml
Normal file
27
.gitea/workflows/deploy-direct.example.yml
Normal file
@@ -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
|
||||
Reference in New Issue
Block a user