現象
以下のような JOB を GitLab CI で実行した
job.yml
build:
image: python:alpine
stage: build
when: manual
script:
- ./script.sh
すると、以下のようなエラーが発生
/bin/sh: eval: line 113: ./script.sh: not found
原因/対処
使用している image に bash が含まれていないため発生していた。
script の中で bash をインストールしたら解決した。
job.yml
build:
image: python:alpine
stage: build
when: manual
script:
- apk add bash
- ./script.sh