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