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:
|
||||
name: Vet, test, build
|
||||
runs-on: golang
|
||||
container:
|
||||
image: golang:1.26-bookworm
|
||||
steps:
|
||||
- name: install node (required by JS-based actions)
|
||||
run: apt-get update && apt-get install -y --no-install-recommends nodejs ca-certificates git
|
||||
- name: Install Node.js for actions runtime
|
||||
run: apt-get update && apt-get install -y nodejs
|
||||
|
||||
- uses: actions/checkout@v4
|
||||
|
||||
@@ -43,13 +41,10 @@ jobs:
|
||||
if: github.ref == 'refs/heads/main' && github.event_name == 'push'
|
||||
runs-on: golang
|
||||
steps:
|
||||
- name: Install dependencies
|
||||
- name: Install Docker CLI and Node.js
|
||||
run: |
|
||||
apt-get update
|
||||
apt-get install -y --no-install-recommends \
|
||||
docker.io \
|
||||
nodejs \
|
||||
git
|
||||
apt-get install -y --no-install-recommends docker.io nodejs git
|
||||
rm -rf /var/lib/apt/lists/*
|
||||
|
||||
- uses: actions/checkout@v4
|
||||
|
||||
Reference in New Issue
Block a user