Most recent docker image no longer has bash, curl installed
Description
During a build this morning, the script
failed - though, the before_script
pipeline at https://gitlab.com/pages/hugo/-/blob/c490b1221ba1b5c6d88f65e999a6e72cedb21315/.gitlab-ci.yml seems to expect having installed bash curl go
prior
#.gitlab-ci.yml
# Modified version of the instructions at https://gohugo.io/hosting-and-deployment/hosting-on-gitlab/
image: registry.gitlab.com/pages/hugo/hugo_extended:latest
pages:
script:
- curl -fsSL https://deb.nodesource.com/setup_18.x | bash - && apt-get install -y nodejs
- npm install
- npm run build
artifacts:
paths:
- public
rules:
- if: $CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH
Error
Using docker image sha256:6015504f1fb935ce5eec40ed4de77ba96514a3b5710d1a5e389c861f8f45121d for registry.gitlab.com/pages/hugo/hugo_extended:latest with digest registry.gitlab.com/pages/hugo/hugo_extended@sha256:b7562f9eb4ea9cb025548278bec52dec3bf44f19330893625a1813dd746328c6 ...
$ curl -fsSL https://deb.nodesource.com/setup_18.x | bash - && apt-get install -y nodejs
$ npm install
/bin/sh: eval: line 131: bash: not found
/bin/sh: eval: line 131: curl: not found
/bin/sh: eval: line 133: npm: not found
Edited by Mo Omer