update named config #5
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Update Config Files | |
on: | |
push: | |
branches: | |
- main | |
- test | |
- dev | |
paths: | |
- 'dns/dns-prod-1/config/**' | |
workflow_dispatch: | |
jobs: | |
deploy: | |
runs-on: "self-hosted" | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v2 | |
- name: SCP files via ssh key | |
uses: appleboy/scp-action@master | |
with: | |
username: xcad | |
host: srv-prod-7.home.clcreative.de | |
key: ${{ secrets.SSH_XCAD }} | |
source: './dns/dns-prod-1/config/*' | |
target: '/home/xcad/dns-prod-1/' | |
overwrite: true | |
strip_components: 3 | |
- name: Restart Docker Container | |
uses: fifsky/ssh-action@master | |
with: | |
user: xcad | |
host: srv-prod-7.home.clcreative.de | |
key: ${{ secrets.SSH_XCAD }} | |
command: | | |
cd dns-prod-1 | |
docker compose restart |