Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use an SSH URL to fetch Runtime in CI #3

Merged
merged 1 commit into from
May 12, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 13 additions & 0 deletions docker/docker-compose.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,14 +15,24 @@ 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."[email protected]: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
depends_on: [runtime-setup]
volumes:
- ~/.ssh:/root/.ssh
- ..:/code:z
- ci-gitconfig:/ci-gitconfig
working_dir: /code
environment:
- GIT_CONFIG_GLOBAL=/ci-gitconfig/gitconfig

soundness:
<<: *common
Expand All @@ -35,3 +45,6 @@ services:
shell:
<<: *common
entrypoint: /bin/bash

volumes:
ci-gitconfig: