diff --git a/.deploy/ssh/with-letsencrypt/docker-compose.api-demo.template.yml b/.deploy/ssh/with-letsencrypt/docker-compose.api.demo.template.yml similarity index 100% rename from .deploy/ssh/with-letsencrypt/docker-compose.api-demo.template.yml rename to .deploy/ssh/with-letsencrypt/docker-compose.api.demo.template.yml diff --git a/.deploy/ssh/with-letsencrypt/docker-compose.api.template.yml b/.deploy/ssh/with-letsencrypt/docker-compose.api.stage.template.yml similarity index 100% rename from .deploy/ssh/with-letsencrypt/docker-compose.api.template.yml rename to .deploy/ssh/with-letsencrypt/docker-compose.api.stage.template.yml diff --git a/.github/workflows/deploy-do-droplet-demo.yml b/.github/workflows/deploy-do-droplet-demo.yml index 29bd8731d2f..8756f0401d9 100644 --- a/.github/workflows/deploy-do-droplet-demo.yml +++ b/.github/workflows/deploy-do-droplet-demo.yml @@ -22,15 +22,20 @@ jobs: elif [ "${{ env.INGRESS_CERT_TYPE }}" = "letsencrypt" ]; then echo "API_BASE_URL=https://apidemodts.gauzy.co" >> $GITHUB_ENV else - echo "API_BASE_URL UNKNOWN INGRESS_CERT_TYPE" + echo "UNKNOWN INGRESS_CERT_TYPE" fi env: INGRESS_CERT_TYPE: 'cloudflare' - name: Inject secrets into .env-template.compose - run: | - envsubst < $GITHUB_WORKSPACE/.deploy/ssh/with-cloudflare/docker-compose.api.demo.template.yml > temp.yaml && mv temp.yaml $GITHUB_WORKSPACE/.deploy/ssh/with-cloudflare/docker-compose.api.demo.yml - envsubst < $GITHUB_WORKSPACE/.deploy/ssh/with-letsencrypt/docker-compose.api.demo.template.yml > temp.yaml && mv temp.yaml $GITHUB_WORKSPACE/.deploy/ssh/with-letsencrypt/docker-compose.api.demo.yml + run: | + if [ "${{ env.INGRESS_CERT_TYPE }}" = "cloudflare" ]; then + envsubst < $GITHUB_WORKSPACE/.deploy/ssh/with-cloudflare/docker-compose.api.demo.template.yml > temp.yaml && mv temp.yaml $GITHUB_WORKSPACE/.deploy/ssh/with-cloudflare/docker-compose.api.demo.yml + elif [ "${{ env.INGRESS_CERT_TYPE }}" = "letsencrypt" ]; then + envsubst < $GITHUB_WORKSPACE/.deploy/ssh/with-letsencrypt/docker-compose.api.demo.template.yml > temp.yaml && mv temp.yaml $GITHUB_WORKSPACE/.deploy/ssh/with-letsencrypt/docker-compose.api.demo.yml + else + echo "UNKNOWN INGRESS_CERT_TYPE" + fi env: ENV_NAME: 'demo' DEMO: 'true'