Simplify process
This commit is contained in:
@@ -4,7 +4,7 @@
|
||||
become: false
|
||||
vars:
|
||||
artifact_version: 0.0.2
|
||||
artifact_job: 10
|
||||
artifact_job: 11
|
||||
artifact_url: https://gitea.toal.ca/oys/bab-app/actions/runs/10/artifacts/build-artifact-{{ artifact_version }}.{{ artifact_job }}
|
||||
|
||||
tasks:
|
||||
@@ -14,23 +14,12 @@
|
||||
dest: /tmp/BABFrontend.zip
|
||||
mode: '0644'
|
||||
|
||||
- name: Unzip file to temp directory
|
||||
- name: Unzip file to web dir
|
||||
ansible.builtin.unarchive:
|
||||
src: /tmp/BABFrontend.zip
|
||||
dest: /tmp
|
||||
dest: /usr/share/nginx/html/
|
||||
remote_src: true
|
||||
|
||||
- name: Extract tgz file to nginx directory
|
||||
ansible.builtin.unarchive:
|
||||
src: /tmp/build-{{ artifact_version }}.tar.gz
|
||||
dest: /usr/share/nginx/html
|
||||
remote_src: true
|
||||
|
||||
- name: Cleanup temp file
|
||||
ansible.builtin.file:
|
||||
path: /tmp/build-artifact-{{ artifact_version }}.tar.gz
|
||||
state: absent
|
||||
|
||||
- name: Clean up artifact download
|
||||
ansible.builtin.file:
|
||||
path: /tmp/BABFrontend.zip
|
||||
|
||||
Reference in New Issue
Block a user