Ensure /opt/services ownership on deploy
This commit is contained in:
@@ -21,7 +21,8 @@ jobs:
|
||||
- name: Sync repo
|
||||
run: |
|
||||
git config --global --replace-all safe.directory /opt/services
|
||||
git -C /opt/services pull --ff-only
|
||||
git -C /opt/services pull origin main --ff-only
|
||||
chown -R ada:users /opt/services
|
||||
|
||||
- name: Deploy stacks
|
||||
run: /opt/services/scripts/deploy.sh cloud-pc "${{ inputs.stack }}"
|
||||
|
||||
@@ -21,7 +21,8 @@ jobs:
|
||||
- name: Sync repo
|
||||
run: |
|
||||
git config --global --replace-all safe.directory /opt/services
|
||||
git -C /opt/services pull --ff-only
|
||||
git -C /opt/services pull origin main --ff-only
|
||||
chown -R ada:users /opt/services
|
||||
|
||||
- name: Deploy stacks
|
||||
run: /opt/services/scripts/deploy.sh mini-pc "${{ inputs.stack }}"
|
||||
|
||||
@@ -21,7 +21,8 @@ jobs:
|
||||
- name: Sync repo
|
||||
run: |
|
||||
git config --global --replace-all safe.directory /opt/services
|
||||
git -C /opt/services pull --ff-only
|
||||
git -C /opt/services pull origin main --ff-only
|
||||
chown -R ada:users /opt/services
|
||||
|
||||
- name: Deploy stacks
|
||||
run: /opt/services/scripts/deploy.sh ru-vps "${{ inputs.stack }}"
|
||||
|
||||
@@ -17,7 +17,8 @@ jobs:
|
||||
- name: Sync repo
|
||||
run: |
|
||||
git config --global --replace-all safe.directory /opt/services
|
||||
git -C /opt/services pull --ff-only
|
||||
git -C /opt/services pull origin main --ff-only
|
||||
chown -R ada:users /opt/services
|
||||
|
||||
- name: Switch NixOS generation
|
||||
env:
|
||||
|
||||
@@ -17,7 +17,8 @@ jobs:
|
||||
- name: Sync repo
|
||||
run: |
|
||||
git config --global --replace-all safe.directory /opt/services
|
||||
git -C /opt/services pull --ff-only
|
||||
git -C /opt/services pull origin main --ff-only
|
||||
chown -R ada:users /opt/services
|
||||
|
||||
- name: Switch NixOS generation
|
||||
env:
|
||||
|
||||
@@ -66,6 +66,7 @@
|
||||
|
||||
systemd.tmpfiles.rules = [
|
||||
"d /opt/services 0755 ada users - -"
|
||||
"Z /opt/services - ada users - -"
|
||||
"d /opt/data 0755 ada users - -"
|
||||
"d /opt/configs 0755 ada users - -"
|
||||
];
|
||||
|
||||
Reference in New Issue
Block a user