fix(ci): POSIX sh (job image has no bash)
Some checks failed
build-and-deploy / build-deploy (push) Failing after 1s
Some checks failed
build-and-deploy / build-deploy (push) Failing after 1s
This commit is contained in:
parent
2b3cb0e8e7
commit
bebac7b7aa
1 changed files with 7 additions and 1 deletions
|
|
@ -15,6 +15,11 @@ env:
|
||||||
jobs:
|
jobs:
|
||||||
build-deploy:
|
build-deploy:
|
||||||
runs-on: k8s-arm64 # act_runner label → docker:27-cli, DinD at localhost:2375
|
runs-on: k8s-arm64 # act_runner label → docker:27-cli, DinD at localhost:2375
|
||||||
|
# The job image (docker:27-cli) is Alpine: only /bin/sh (no bash). Default all
|
||||||
|
# run: steps to sh so act_runner doesn't try (and fail to find) bash.
|
||||||
|
defaults:
|
||||||
|
run:
|
||||||
|
shell: sh
|
||||||
env:
|
env:
|
||||||
DOCKER_HOST: tcp://localhost:2375
|
DOCKER_HOST: tcp://localhost:2375
|
||||||
steps:
|
steps:
|
||||||
|
|
@ -29,7 +34,8 @@ jobs:
|
||||||
|
|
||||||
- name: Short SHA
|
- name: Short SHA
|
||||||
id: sha
|
id: sha
|
||||||
run: echo "value=${GITHUB_SHA::7}" >> "$GITHUB_OUTPUT"
|
# POSIX sh has no ${var::7} substring — use cut.
|
||||||
|
run: echo "value=$(printf '%s' "$GITHUB_SHA" | cut -c1-7)" >> "$GITHUB_OUTPUT"
|
||||||
|
|
||||||
- name: Login to Harbor
|
- name: Login to Harbor
|
||||||
run: |
|
run: |
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue