Skip to content

Commit

Permalink
Tweak how we start docker services
Browse files Browse the repository at this point in the history
  • Loading branch information
ejsmith committed Sep 28, 2023
1 parent 3ceac35 commit 726eaf2
Showing 1 changed file with 11 additions and 2 deletions.
13 changes: 11 additions & 2 deletions .github/workflows/build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -30,20 +30,29 @@ jobs:
timeout-minutes: 30

steps:

- name: Checkout
uses: actions/checkout@v3
with:
fetch-depth: 0

- name: Setup .NET Core
uses: actions/setup-dotnet@v3
with:
dotnet-version: 7.0.*
dotnet-quality: ga

- name: Start Services
working-directory: docker
run: docker compose up -d elasticsearch

- name: Build
run: dotnet build --configuration Release /clp:NoSummary
- name: Start Services

- name: Wait for Elasticsearch
working-directory: docker
run: docker compose up --wait elasticsearch

- name: Run Tests
run: dotnet test --configuration Release --no-build --logger GitHubActions

Expand Down Expand Up @@ -165,7 +174,7 @@ jobs:
# build remaining docker images
for image in {"api","job","exceptionless"}; do
docker buildx build --cache-from type=gha --cache-to type=gha,mode=min --tag exceptionless/$image-ci:latest --target $image .
docker buildx build --cache-from type=gha --cache-to type=gha,mode=min --tag exceptionless/$image-ci:latest --target $image --load .
done
- name: Login to GitHub Container Registry
Expand Down

0 comments on commit 726eaf2

Please sign in to comment.