diff --git a/.github/workflows/job-deploy.yml b/.github/workflows/job-deploy.yml index c4820fa..d3209a8 100644 --- a/.github/workflows/job-deploy.yml +++ b/.github/workflows/job-deploy.yml @@ -20,6 +20,9 @@ on: DEPLOYMENT_NAME: required: true type: string + TYPE: + required: true + type: string jobs: prepare: @@ -63,6 +66,8 @@ jobs: - name: Install Composer Dependencies run: | + source ./.env + echo "Default theme: ${WP_DEFAULT_THEME}" composer update cd app/wp-content/themes/${{ inputs.WP_DEFAULT_THEME }} && composer update diff --git a/.github/workflows/workflow-develop-deploy.yml b/.github/workflows/workflow-develop-deploy.yml index 5228f9d..7f73e4e 100644 --- a/.github/workflows/workflow-develop-deploy.yml +++ b/.github/workflows/workflow-develop-deploy.yml @@ -17,3 +17,4 @@ jobs: DEPLOY_PATH_DESTINATION: /srv/develop.starter-kit.io WP_DEFAULT_THEME: starter-kit-theme DEPLOYMENT_NAME: "StarterKit push to develop" + TYPE: dev diff --git a/iasc/ansible/inventory.ini b/iasc/ansible/inventory.ini index 6308539..bf9f0b7 100644 --- a/iasc/ansible/inventory.ini +++ b/iasc/ansible/inventory.ini @@ -2,7 +2,7 @@ develop.starter-kit.io ansible_user=ubuntu [staging] -example.com ansible_user=ubuntu +staging.starter-kit.io ansible_user=ubuntu [production] -starter-kit.io ansible_user=ubuntu +prod.starter-kit.io ansible_user=ubuntu