Skip to content

Commit

Permalink
Mise à jour OPS - tentative de correction du déploiement sur eclipse (#…
Browse files Browse the repository at this point in the history
…203)

* chore: upgrade version github actions (cd.yml) (#201)

* fix : ajout arg => autorise l'installation ansible sur la version python en preprod

* downgrade python github action to v4

* fix cd
  • Loading branch information
Shamzic authored Oct 4, 2024
1 parent 0c7c1c7 commit 661750c
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 5 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/cd.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,11 +19,11 @@ jobs:
runs-on: ubuntu-20.04
steps:
- name: Checkout
uses: actions/checkout@v3
uses: actions/checkout@v4
- name: Setup Python
uses: actions/setup-python@v4
- name: Cache Python dependencies
uses: actions/cache@v3
uses: actions/cache@v4
id: python-dependencies
with:
path: ${{ env.pythonLocation }}
Expand All @@ -36,11 +36,11 @@ jobs:
needs: [install_python_requirements]
steps:
- name: Checkout
uses: actions/checkout@v3
uses: actions/checkout@v4
- name: Setup Python
uses: actions/setup-python@v4
- name: Cache Python dependencies
uses: actions/cache@v3
uses: actions/cache@v4
id: python-dependencies
with:
path: ${{ env.pythonLocation }}
Expand Down
3 changes: 2 additions & 1 deletion synchronize.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,14 +10,15 @@
- name: Install ansible on host
ansible.builtin.pip:
name: ansible
extra_args: "--break-system-packages"
- name: Clone application repository
ansible.builtin.git:
repo: "{{ ops.repository }}"
dest: /opt/mes-aides/
update: true
clone: true
single_branch: true
version: "{{ ops.branch | default('main') }}"
version: "{{ ops.branch }}"
when: ops.repository is defined
- name: Set deployment variables
ansible.builtin.set_fact:
Expand Down

0 comments on commit 661750c

Please sign in to comment.