Skip to content

Commit

Permalink
feat: wip
Browse files Browse the repository at this point in the history
  • Loading branch information
Florian committed Nov 6, 2023
1 parent 565c3e9 commit c555449
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 1 deletion.
2 changes: 2 additions & 0 deletions .infra/ansible/galaxy-requirements.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
collections:
- name: community.docker
3 changes: 2 additions & 1 deletion .infra/ansible/roles/deploy/tasks/main.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
- name: "Clone du repository (branche : {{ git_revision }})"
become: yes
git:
repo: "https://github.com/mission-apprentissage/tjp-pilotage.git"
version: "{{ git_revision }}"
Expand All @@ -17,7 +18,7 @@
- name: Create and start services
become: yes
community.docker.docker_compose:
project_src: "{{ REPO_DIR }}"
project_src: /opt/pilotage/repository
build: true
restarted: true
files:
Expand Down
1 change: 1 addition & 0 deletions .infra/scripts/deploy-app.sh
Original file line number Diff line number Diff line change
Expand Up @@ -7,5 +7,6 @@ shift

echo "Déploiement sur l'(es) environnement(s) ${ENV_FILTER}..."
cd "${ANSIBLE_DIR}"
ansible-galaxy collection install --requirements-file galaxy-requirements.yml
ansible-playbook -i env.ini --limit "${ENV_FILTER}" deploy.yml "$@"
cd -

0 comments on commit c555449

Please sign in to comment.