fix(ci): install docker client on node runner
Build & Push Portfolio Image / build-push (push) Canceled after 14m21s
Build & Push Portfolio Image / build-push (push) Canceled after 14m21s
- runs-on: node (node:22-bookworm doesn't have docker by default) - Add step to install docker.io before build - Fixes: 'docker: command not found' error
This commit is contained in:
@@ -7,7 +7,7 @@ on:
|
||||
|
||||
jobs:
|
||||
build-push:
|
||||
runs-on: node,docker
|
||||
runs-on: node
|
||||
env:
|
||||
REGISTRY: forgejo.riotpiao.com
|
||||
IMAGE: forgejo.riotpiao.com/rock/portfolio
|
||||
@@ -15,6 +15,11 @@ jobs:
|
||||
- name: Checkout code
|
||||
uses: actions/checkout@v4
|
||||
|
||||
- name: Install Docker client
|
||||
run: |
|
||||
apt-get update
|
||||
apt-get install -y docker.io
|
||||
|
||||
- name: Get short SHA
|
||||
id: sha
|
||||
run: |
|
||||
|
||||
Reference in New Issue
Block a user