build: Set docker client configuration at job level
This commit is contained in:
@ -41,6 +41,9 @@ jobs:
|
||||
name: Container image
|
||||
runs-on: ubuntu-latest
|
||||
# needs: semrel_dryrun
|
||||
env:
|
||||
DOCKER_HOST: tcp://docker: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
|
||||
|
Reference in New Issue
Block a user