Skip to content

Commit

Permalink
fix(ci): corrige le chemin des artéfacts passés à Ansible
Browse files Browse the repository at this point in the history
  • Loading branch information
thom4parisot committed Oct 29, 2024
1 parent fd574e1 commit d84a4a9
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/deploy-tag.yml
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ jobs:
ansible-playbook -v -i inventories/prod \
--extra-vars "@vault-prod.yml" \
--extra-vars "app_version=${{ inputs.release-version }}" \
--extra-vars "assets_path=/tmp/front-assets" \
--extra-vars "assets_path=/tmp/front-assets/" \
--private-key ~/.ssh/id_ed25519 \
--vault-password-file ./.ansible-vault-password \
playbook.yml
3 changes: 2 additions & 1 deletion .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -88,9 +88,10 @@ jobs:
- name: Run playbook
working-directory: ./infrastructure
run: |
ls -R /tmp/front-assets
ansible-playbook -v -i inventories/dev \
--extra-vars "@vault-dev.yml" \
--extra-vars "assets_path= /tmp/front-assets" \
--extra-vars "assets_path=/tmp/front-assets/" \
--private-key ~/.ssh/id_ed25519 \
--vault-password-file ./.ansible-vault-password \
playbook.yml
2 changes: 1 addition & 1 deletion infrastructure/playbook.yml
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,7 @@
- name: Copy frontend assets files
ansible.builtin.copy:
src: "{{ assets_path }}"
dest: "~/stylo/front-assets"
dest: "~/stylo/front-assets/"

- name: Restart containers
become: true
Expand Down

0 comments on commit d84a4a9

Please sign in to comment.