Use docker:latest container with DOCKER_HOST for DIND
Some checks failed
Build and Push Docker Image / build-and-push (push) Failing after 10s
Some checks failed
Build and Push Docker Image / build-and-push (push) Failing after 10s
- Run workflow in docker:latest container (has docker CLI) - Set DOCKER_HOST to connect to DIND daemon - Install git in Alpine container - Enables Docker commands in job container 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
parent
485d4540e3
commit
22645a6908
1 changed files with 5 additions and 0 deletions
|
|
@ -8,10 +8,15 @@ on:
|
||||||
jobs:
|
jobs:
|
||||||
build-and-push:
|
build-and-push:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
|
container:
|
||||||
|
image: docker:latest
|
||||||
|
env:
|
||||||
|
DOCKER_HOST: tcp://docker-runner:2375
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout repository
|
- name: Checkout repository
|
||||||
run: |
|
run: |
|
||||||
|
apk add --no-cache git
|
||||||
git clone ${{ github.server_url }}/${{ github.repository }} .
|
git clone ${{ github.server_url }}/${{ github.repository }} .
|
||||||
git checkout ${{ github.sha }}
|
git checkout ${{ github.sha }}
|
||||||
ls -la
|
ls -la
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue