Upload files to "/"

This commit is contained in:
2026-02-06 09:56:02 +00:00
commit edccc9cfbd

36
deploy-template.yml Normal file
View File

@@ -0,0 +1,36 @@
name: Deploy Template
on:
workflow_call:
inputs:
runner:
required: true
type: string
image:
required: true
type: string
jobs:
deploy:
runs-on: ${{ inputs.runner }}
steps:
- name: Show target server
run: echo "Deploying on ${{ inputs.runner }}"
# Force compose to use the exact image tag we built/pushed, regardless of
# what the server's compose file has hard-coded.
- name: Compose Up (Linux)
if: runner.os != 'Windows'
env:
DOCKER_IMAGE: ${{ inputs.image }}
run: |
docker compose up -d --pull always --remove-orphans
- name: Compose Up (Windows)
if: runner.os == 'Windows'
env:
DOCKER_IMAGE: ${{ inputs.image }}
run: |
docker compose up -d --pull always --remove-orphans