Install Docker CLI in image build job for act_runner.
This commit is contained in:
@@ -48,6 +48,14 @@ jobs:
|
|||||||
- name: Check out repository
|
- name: Check out repository
|
||||||
uses: actions/checkout@v4
|
uses: actions/checkout@v4
|
||||||
|
|
||||||
|
- name: Install Docker CLI
|
||||||
|
run: |
|
||||||
|
# Job runs in node:*-bookworm; CLI is missing even when the host
|
||||||
|
# docker.sock is mounted into the container by act_runner.
|
||||||
|
apt-get update
|
||||||
|
apt-get install -y --no-install-recommends docker.io
|
||||||
|
docker version
|
||||||
|
|
||||||
- name: Build image metadata
|
- name: Build image metadata
|
||||||
id: image
|
id: image
|
||||||
run: |
|
run: |
|
||||||
@@ -71,7 +79,11 @@ jobs:
|
|||||||
|
|
||||||
- name: Build Docker image
|
- name: Build Docker image
|
||||||
run: |
|
run: |
|
||||||
|
# Dockerfile mounts an optional CA secret for npm; provide an empty
|
||||||
|
# file so BuildKit does not fail when no corporate CA is needed.
|
||||||
|
: > /tmp/empty-ca
|
||||||
docker build \
|
docker build \
|
||||||
|
--secret id=ca-cert,src=/tmp/empty-ca \
|
||||||
--tag "${{ steps.image.outputs.sha_tag }}" \
|
--tag "${{ steps.image.outputs.sha_tag }}" \
|
||||||
--tag "${{ steps.image.outputs.latest_tag }}" \
|
--tag "${{ steps.image.outputs.latest_tag }}" \
|
||||||
.
|
.
|
||||||
|
|||||||
Reference in New Issue
Block a user