Skip to content

Commit

Permalink
ci(compliance): fix cache
Browse files Browse the repository at this point in the history
  • Loading branch information
ernado committed Dec 9, 2023
1 parent b79e6cd commit 8342970
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 3 deletions.
4 changes: 1 addition & 3 deletions .github/workflows/compliance.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,6 @@ on:

env:
REGISTRY: ghcr.io
IMAGE_TAG: ghcr.io/${{ github.repository }}
KUBECTL_VERSION: v1.27.1

jobs:
PromQL:
Expand Down Expand Up @@ -52,7 +50,7 @@ jobs:
- name: Build docker-compose
# Before the cache, it was "run: docker compose build".
working-directory: dev/local/ch-compliance
run: docker buildx bake --file docker-compose.ci.yml --file docker-compose-cache.json
run: docker buildx bake --file docker-compose.ci.yml --file docker-cache.json

- name: Start
run: docker compose up -f docker-compose.ci.yml -d
Expand Down
15 changes: 15 additions & 0 deletions dev/local/ch-compliance/docker-cache.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
{
"target": {
"oteldb": {
"cache-from": [
"type=registry,ref=ghcr.io/go-faster/oteldb:cache"
],
"cache-to": [
"type=registry,ref=ghcr.io/go-faster/oteldb:cache"
],
"output": [
"type=docker"
]
}
}
}

0 comments on commit 8342970

Please sign in to comment.