fix: remove container override, install deps in workflow steps
Container override breaks docker socket access to dind sidecar. Changes: - Remove 'container: image: golang:1.26-bookworm' - Install Node.js before checkout (required by actions runtime) - Install docker.io in build step (required for docker build/push) Now works with shared docker socket via dind sidecar.
This commit is contained in:
@@ -20,11 +20,9 @@ jobs:
|
|||||||
verify:
|
verify:
|
||||||
name: Vet, test, build
|
name: Vet, test, build
|
||||||
runs-on: golang
|
runs-on: golang
|
||||||
container:
|
|
||||||
image: golang:1.26-bookworm
|
|
||||||
steps:
|
steps:
|
||||||
- name: install node (required by JS-based actions)
|
- name: Install Node.js for actions runtime
|
||||||
run: apt-get update && apt-get install -y --no-install-recommends nodejs ca-certificates git
|
run: apt-get update && apt-get install -y nodejs
|
||||||
|
|
||||||
- uses: actions/checkout@v4
|
- uses: actions/checkout@v4
|
||||||
|
|
||||||
@@ -43,13 +41,10 @@ jobs:
|
|||||||
if: github.ref == 'refs/heads/main' && github.event_name == 'push'
|
if: github.ref == 'refs/heads/main' && github.event_name == 'push'
|
||||||
runs-on: golang
|
runs-on: golang
|
||||||
steps:
|
steps:
|
||||||
- name: Install dependencies
|
- name: Install Docker CLI and Node.js
|
||||||
run: |
|
run: |
|
||||||
apt-get update
|
apt-get update
|
||||||
apt-get install -y --no-install-recommends \
|
apt-get install -y --no-install-recommends docker.io nodejs git
|
||||||
docker.io \
|
|
||||||
nodejs \
|
|
||||||
git
|
|
||||||
rm -rf /var/lib/apt/lists/*
|
rm -rf /var/lib/apt/lists/*
|
||||||
|
|
||||||
- uses: actions/checkout@v4
|
- uses: actions/checkout@v4
|
||||||
|
|||||||
Reference in New Issue
Block a user