build: Set docker client configuration at job level
Some checks failed
build-image / Semantic Release (Dry-run) (push) Successful in 37s
build-image / Container image (push) Failing after 11s
build-image / Semantic Release (push) Has been skipped

This commit is contained in:
2025-08-01 21:26:30 +10:00
parent b243af4060
commit c5509010cf

View File

@ -41,6 +41,9 @@ jobs:
name: Container image
runs-on: ubuntu-latest
# needs: semrel_dryrun
env:
DOCKER_HOST: tcp://127.0.0.1:2375
DOCKER_TLS_VERIFY: ""
steps:
- name: Check out repository code
uses: actions/checkout@v4
@ -53,22 +56,12 @@ jobs:
id: buildx-context
run: |
docker context create builders
env:
DOCKER_HOST: tcp://docker:2376/
DOCKER_TLS_CERTDIR: /certs
DOCKER_TLS_VERIFY: 1
DOCKER_CERT_PATH: "/certs/client"
- name: Set up buildx
id: buildx
uses: docker/setup-buildx-action@v3
with:
# buildkitd-flags: --debug
endpoint: builders
env:
DOCKER_HOST: "tcp://docker:2376/"
DOCKER_TLS_CERTDIR: "/certs"
DOCKER_TLS_VERIFY: 1
DOCKER_CERT_PATH: "/certs/client"
- name: Login to target repository
uses: docker/login-action@v3
with:
@ -82,11 +75,6 @@ jobs:
tags: code.spamasaurus.com/djpbessems/act-runner-extended:${{ needs.semrel_dryrun.outputs.version }}
provenance: false
push: true
env:
DOCKER_HOST: "tcp://docker:2376/"
DOCKER_TLS_CERTDIR: "/certs"
DOCKER_TLS_VERIFY: 1
DOCKER_CERT_PATH: "/certs/client"
# build_chart:
# name: Helm chart