diff --git a/.gitea/workflows/build-image.yml b/.gitea/workflows/build-image.yml index ddfff596..5ff44dbf 100644 --- a/.gitea/workflows/build-image.yml +++ b/.gitea/workflows/build-image.yml @@ -986,15 +986,6 @@ jobs: --vault-password-file /tmp/vault_pass \ --private-key ~/.ssh/production - - name: Install Composer Dependencies - run: | - cd /workspace/repo/deployment/ansible - ansible-playbook -i inventory/production.yml \ - playbooks/install-composer-dependencies.yml \ - -e "deployment_environment=staging" \ - --vault-password-file /tmp/vault_pass \ - --private-key ~/.ssh/production - - name: Deploy Docker Image to Staging run: | cd /workspace/repo/deployment/ansible @@ -1009,6 +1000,15 @@ jobs: --vault-password-file /tmp/vault_pass \ --private-key ~/.ssh/production + - name: Install Composer Dependencies + run: | + cd /workspace/repo/deployment/ansible + ansible-playbook -i inventory/production.yml \ + playbooks/install-composer-dependencies.yml \ + -e "deployment_environment=staging" \ + --vault-password-file /tmp/vault_pass \ + --private-key ~/.ssh/production + - name: Wait for deployment to stabilize run: sleep 30 @@ -1158,15 +1158,6 @@ jobs: --vault-password-file /tmp/vault_pass \ --private-key ~/.ssh/production - - name: Install Composer Dependencies - run: | - cd /workspace/repo/deployment/ansible - ansible-playbook -i inventory/production.yml \ - playbooks/install-composer-dependencies.yml \ - -e "deployment_environment=production" \ - --vault-password-file /tmp/vault_pass \ - --private-key ~/.ssh/production - - name: Deploy Docker Image to Production run: | cd /workspace/repo/deployment/ansible @@ -1181,6 +1172,15 @@ jobs: --vault-password-file /tmp/vault_pass \ --private-key ~/.ssh/production + - name: Install Composer Dependencies + run: | + cd /workspace/repo/deployment/ansible + ansible-playbook -i inventory/production.yml \ + playbooks/install-composer-dependencies.yml \ + -e "deployment_environment=production" \ + --vault-password-file /tmp/vault_pass \ + --private-key ~/.ssh/production + - name: Wait for deployment to stabilize run: sleep 30