From: Jakub Czajka Date: Thu, 2 Jan 2025 14:07:43 +0000 (+0100) Subject: [kwerenda] Deploy HTML files. X-Git-Url: https://git.ekhem.eu.org/?a=commitdiff_plain;h=6bc20b8e93f4e1faaab98cd123930ffd7d4ecbac;p=metadata.git [kwerenda] Deploy HTML files. --- diff --git a/kwerenda.git/deploy.yaml b/kwerenda.git/deploy.yaml index 29beca3..ed6b03a 100644 --- a/kwerenda.git/deploy.yaml +++ b/kwerenda.git/deploy.yaml @@ -45,6 +45,19 @@ become: true with_items: "{{ ansible_local.env.vars.databases | split }}" + - name: Create destination directory + file: + path: "{{ dest }}" + state: directory + mode: 0775 + owner: git + group: www-data + become: true + - name: Checkout kwerenda files to the destination directory + command: /usr/bin/git --work-tree={{ dest }} --git-dir={{ repo }} \ + checkout main --force *.css *.html *.js + become: true + - name: Install nginx package: name: nginx