diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 2fa8d41..138a468 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -4,7 +4,9 @@ stages: generate-child-pipeline: stage: generate - image: bash:latest + image: alpine:latest + before_script: + - apk add bash sed script: - chmod +x ci-scripts/generate-pipeline.sh - ./ci-scripts/generate-pipeline.sh > child-pipeline.yml diff --git a/templates/php/main.tf b/templates/php/main.tf index 851eceb..14a4765 100644 --- a/templates/php/main.tf +++ b/templates/php/main.tf @@ -77,10 +77,12 @@ module "php_workspace" { language_startup_script = <<-EOT echo $(php -v) + export NVM_DIR="/home/coder/.nvm" [ -s "$NVM_DIR/nvm.sh" ] && . "$NVM_DIR/nvm.sh" nvm install ${data.coder_parameter.node_version.value} nvm use ${data.coder_parameter.node_version.value} + echo "Node version set to $(node -v)" EOT