mirror of
https://github.com/cisagov/manage.get.gov.git
synced 2025-07-09 12:43:28 +02:00
Run nvm inside of docker shell
This commit is contained in:
parent
75f3a1cca1
commit
4c6e555a05
1 changed files with 10 additions and 9 deletions
19
.github/workflows/deploy-sandbox.yaml
vendored
19
.github/workflows/deploy-sandbox.yaml
vendored
|
@ -46,15 +46,16 @@ jobs:
|
||||||
- name: Compile USWDS assets
|
- name: Compile USWDS assets
|
||||||
working-directory: ./src
|
working-directory: ./src
|
||||||
run: |
|
run: |
|
||||||
curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.39.1/install.sh | bash
|
docker compose run node bash -c "\
|
||||||
export NVM_DIR="$HOME/.nvm"
|
curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.39.1/install.sh | bash && \
|
||||||
[ -s "$NVM_DIR/nvm.sh" ] && \. "$NVM_DIR/nvm.sh"
|
export NVM_DIR=\"\$HOME/.nvm\" && \
|
||||||
[ -s "$NVM_DIR/bash_completion" ] && \. "$NVM_DIR/bash_completion"
|
[ -s \"\$NVM_DIR/nvm.sh\" ] && \. \"\$NVM_DIR/nvm.sh\" && \
|
||||||
docker compose run node nvm install 21.7.3 &&
|
[ -s \"\$NVM_DIR/bash_completion\" ] && \. \"\$NVM_DIR/bash_completion\" && \
|
||||||
docker compose run node nvm use 21.7.3 &&
|
nvm install 21.7.3 && \
|
||||||
docker compose run node npm install &&
|
nvm use 21.7.3 && \
|
||||||
docker compose run node npx gulp copyAssets &&
|
npm install && \
|
||||||
docker compose run node npx gulp compile
|
npx gulp copyAssets && \
|
||||||
|
npx gulp compile"
|
||||||
- name: Collect static assets
|
- name: Collect static assets
|
||||||
working-directory: ./src
|
working-directory: ./src
|
||||||
run: docker compose run app python manage.py collectstatic --no-input
|
run: docker compose run app python manage.py collectstatic --no-input
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue