Skip to content

Open-source gym & body-weight tracker, now in the App Store (iPhone + Apple Watch) and as an Android APK. Plan routines, log workouts, see which muscles are trained, import from Strong/Hevy/FitNotes. Self-host it or use it on the phone alone.

CI: buildx den dind-Daemon ueber einen benannten Docker-Kontext geben

Duarte Santosb2ee031cf1fb
diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index c9bc27814..cc1ed8e88 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -122,7 +122,12 @@ build:images:
CONTEXT: "."
DOCKERFILE: "./web/Dockerfile"
before_script:
- - docker login -u "$CI_REGISTRY_USER" -p "$CI_REGISTRY_PASSWORD" "$CI_REGISTRY"
+ - echo "$CI_REGISTRY_PASSWORD" | docker login -u "$CI_REGISTRY_USER" --password-stdin "$CI_REGISTRY"
+ # buildx's docker-container driver refuses to read the daemon's TLS material straight
+ # out of DOCKER_HOST/DOCKER_CERT_PATH ("could not create a builder instance with TLS
+ # data loaded from environment"). Freezing the same environment into a named context
+ # and building the builder on top of that is the supported way round it.
+ - docker context create tls-environment
script:
- |
set -eu
@@ -141,7 +146,7 @@ build:images:
PLATFORMS="linux/amd64"
TAGS="-t $REPO:edge -t $REPO:$VERSION"
fi
- docker buildx create --use --name opengym --driver docker-container
+ docker buildx create --use --name opengym --driver docker-container tls-environment
# shellcheck disable=SC2086
docker buildx build \
--platform "$PLATFORMS" \