Some checks failed
GitOps Automatic Deployment / GitOps Automatic Deployment (push) Failing after 17s
34 lines
796 B
YAML
34 lines
796 B
YAML
name: GitOps Automatic Deployment
|
|
|
|
on:
|
|
push:
|
|
branches: [ main ]
|
|
|
|
jobs:
|
|
GitOps Automatic Deployment:
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
|
- name: Checkout repository
|
|
uses: actions/checkout@v3
|
|
|
|
- name: Install rsync
|
|
run: |
|
|
apt-get update
|
|
apt-get install -y rsync
|
|
|
|
- name: Debug Rsync to GitOps Folder Target
|
|
run: |
|
|
echo "PWD:"
|
|
pwd
|
|
echo "Contents of current directory:"
|
|
ls -lah
|
|
echo "Contents of /Gitops_Destination before rsync:"
|
|
ls -lah /Gitops_Destination
|
|
|
|
echo "Running rsync..."
|
|
rsync -avvi --delete --exclude='.git/' . /Gitops_Destination/
|
|
|
|
echo "Contents of /Gitops_Destination after rsync:"
|
|
ls -lah /Gitops_Destination
|