chore: Debug docker context create shell environment
Some checks failed
build-image / build-image (push) Failing after 21s

This commit is contained in:
Danny Bessems 2024-06-05 21:18:39 +10:00
parent 52f8b84332
commit 98d832d5fb

View File

@ -24,25 +24,28 @@ jobs:
# #
# https://github.com/docker/metadata-action # https://github.com/docker/metadata-action
# #
- name: Docker meta # - name: Docker meta
id: meta # id: meta
uses: docker/metadata-action@v5 # uses: docker/metadata-action@v5
with: # with:
images: | # images: |
code.spamasaurus.com/djpbessems/alpine # gitea.example.com/xyz/alpine
tags: | # tags: |
type=schedule,pattern={{date 'YYYYMMDDHHMM'}} # type=schedule,pattern={{date 'YYYYMMDDHHMM'}}
type=semver,pattern={{version}} # type=semver,pattern={{version}}
type=semver,pattern={{major}}.{{minor}} # type=semver,pattern={{major}}.{{minor}}
type=semver,pattern={{major}} # type=semver,pattern={{major}}
type=sha # type=sha
- name: Set up Docker Context for Buildx - name: Set up Docker Context for Buildx
id: buildx-context id: buildx-context
run: | run: |
set -x
export DOCKER_HOST=tcp://docker:2376/ export DOCKER_HOST=tcp://docker:2376/
export DOCKER_TLS_CERTDIR="/certs" export DOCKER_TLS_CERTDIR="/certs"
export DOCKER_TLS_VERIFY=1 export DOCKER_TLS_VERIFY=1
export DOCKER_CERT_PATH="/certs/client" export DOCKER_CERT_PATH="/certs/client"
ls /certs/client -lash
whoami
docker context create builders docker context create builders
# https://github.com/docker/setup-buildx-action # https://github.com/docker/setup-buildx-action
# https://docs.docker.com/engine/reference/commandline/cli/#environment-variables # https://docs.docker.com/engine/reference/commandline/cli/#environment-variables