Skip to content

Deploy Caddyfile

Actions
Deploy a Caddyfile to a remote server and restart the Caddy container
v1.0.1
Latest
By ofkm
Star (0)

Deploy Caddyfile Action

Deploy Caddyfile Action is a GitHub action for deploying a Caddyfile to a remote server and restarting the Caddy Docker container.

Usage Example

.github/workflows/deploy.yml

on:
  push:
    paths:
      - './files/Caddyfile'

jobs:
  deploy:
    name: Deploy Caddyfile
    runs-on: ubuntu-latest
    steps:
      - name: Checkout Project
        uses: actions/checkout@v6

      - name: Deploy Caddyfile
        uses: ofkm/deploy-caddyfile@v1
        with:
          host: ${{ secrets.SSH_HOST }}
          port: ${{ secrets.SSH_PORT }}
          key: ${{ secrets.SSH_KEY }}
          username: ${{ secrets.SSH_USERNAME }}
          source_file: ./Caddyfile
          destination_folder: /etc/caddy/
          container_name: caddy

Inputs

Input Description Required Default
host SSH host address Yes
port SSH port number No 22
key SSH private key Yes
username SSH username Yes
source_file Path to the Caddyfile to deploy Yes
destination_folder Destination folder on the remote host Yes
container_name Name of the Caddy docker container to restart Yes

Deploy Caddyfile is not certified by GitHub. It is provided by a third-party and is governed by separate terms of service, privacy policy, and support documentation.

About

Deploy a Caddyfile to a remote server and restart the Caddy container
v1.0.1
Latest
By ofkm

Deploy Caddyfile is not certified by GitHub. It is provided by a third-party and is governed by separate terms of service, privacy policy, and support documentation.