From cb718cb04b4bae2f950aacbb5d8b0d4b4a571db0 Mon Sep 17 00:00:00 2001 From: Honza Dvorsky Date: Fri, 12 May 2023 12:17:52 +0200 Subject: [PATCH] Use an SSH URL to fetch Runtime in CI --- docker/docker-compose.yaml | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/docker/docker-compose.yaml b/docker/docker-compose.yaml index dc115a6..e1dc84c 100644 --- a/docker/docker-compose.yaml +++ b/docker/docker-compose.yaml @@ -15,6 +15,13 @@ services: build: context: . dockerfile: Dockerfile + # Note: This temporary step creates a gitconfig to use SSH for a dependency + # that is not yet public. This can be removed once it is public. + command: git config --global url."git@github.com:apple/swift-openapi-runtime".insteadOf "https://github.com/apple/swift-openapi-runtime" + volumes: + - ci-gitconfig:/ci-gitconfig + environment: + - GIT_CONFIG_GLOBAL=/ci-gitconfig/gitconfig common: &common image: *image @@ -22,7 +29,10 @@ services: volumes: - ~/.ssh:/root/.ssh - ..:/code:z + - ci-gitconfig:/ci-gitconfig working_dir: /code + environment: + - GIT_CONFIG_GLOBAL=/ci-gitconfig/gitconfig soundness: <<: *common @@ -35,3 +45,6 @@ services: shell: <<: *common entrypoint: /bin/bash + +volumes: + ci-gitconfig: