Skip to content

Commit

Permalink
fix: expose DOCKER_HOST
Browse files Browse the repository at this point in the history
  • Loading branch information
thesayyn committed Oct 20, 2023
1 parent 1c4ba37 commit d1bf970
Showing 1 changed file with 19 additions and 0 deletions.
19 changes: 19 additions & 0 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,13 @@ jobs:

bzlmodEnabled: [true, false]
exclude:
# macos is expensive so don't test these
- os: macos-latest
folder: e2e/custom_registry
- os: macos-latest
folder: e2e/wasm
- os: macos-latest
folder: e2e/crane_as_registry
# Don't test bzlmod with Bazel 5 (not supported)
- bazelversion: 5.3.2
bzlmodEnabled: true
Expand Down Expand Up @@ -103,12 +110,24 @@ jobs:
working-directory: ${{ matrix.folder }}
run: echo "${{ matrix.bazelversion }}" > .bazelversion

- name: Configure TestContainers cloud
if: ${{ matrix.os == 'macos-latest' }}
uses: atomicjar/testcontainers-cloud-setup-action@main
with:
wait: true
token: ${{ secrets.TC_CLOUD_TOKEN }}

- name: Setup Remote Docker
if: ${{ matrix.os == 'macos-latest' }}
run: echo "DOCKER_HOST=$(cat ~/.testcontainers.properties | grep 'docker.host' | cut -d '=' -f2 | xargs)" >> $GITHUB_ENV

- name: bazel test //...
working-directory: ${{ matrix.folder }}
env:
# Bazelisk will download bazel to here, ensure it is cached between runs.
XDG_CACHE_HOME: ~/.cache/bazel-repo
run: bazel --bazelrc=$GITHUB_WORKSPACE/.github/workflows/ci.bazelrc --bazelrc=.bazelrc test ${{ steps.set_bzlmod_flag.outputs.bzlmod_flag }} //...

test-auth:
runs-on: ubuntu-latest
steps:
Expand Down

0 comments on commit d1bf970

Please sign in to comment.