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