Update buildx
This commit is contained in:
parent
ed6b0193cb
commit
fa9178f83e
2 changed files with 29 additions and 0 deletions
|
@ -13,6 +13,9 @@ on:
|
|||
jobs:
|
||||
test:
|
||||
runs-on: docker
|
||||
# Set environment variable to connect to docker-in-docker service (for consistency)
|
||||
env:
|
||||
DOCKER_HOST: tcp://docker-in-docker:2375
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
|
||||
|
@ -34,9 +37,18 @@ jobs:
|
|||
needs: test
|
||||
runs-on: docker
|
||||
if: github.event_name == 'push' && (startsWith(github.ref, 'refs/tags/v') || github.ref == 'refs/heads/main')
|
||||
# Set environment variable to connect to docker-in-docker service
|
||||
env:
|
||||
DOCKER_HOST: tcp://docker-in-docker:2375
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
|
||||
# Verify Docker connection to docker-in-docker service
|
||||
- name: Verify Docker connection
|
||||
run: |
|
||||
echo "Using Docker host: $DOCKER_HOST"
|
||||
docker version || true
|
||||
|
||||
- name: Docker info
|
||||
run: |
|
||||
docker info
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue