Skip to content

Commit

Permalink
fix ci
Browse files Browse the repository at this point in the history
  • Loading branch information
bitner committed Oct 30, 2024
1 parent a110a06 commit 6adc076
Show file tree
Hide file tree
Showing 2 changed files with 35 additions and 2 deletions.
11 changes: 9 additions & 2 deletions .github/workflows/civ2.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,14 +36,21 @@ jobs:
steps:
- uses: actions/checkout@v4
- uses: docker/setup-buildx-action@v3
- name: Build and Cache Docker layers
uses: docker/bake-action@master
with:
push: false
load: true
files: |-
docker-compose.yml
docker-compose-cache.json
- name: Run docker-compose
run: |
docker compose build
docker compose up -d pgstac
- name: Execute tests in the running services
run: |
scripts/test
scripts/test --nobuild
- name: Stop Docker
run: |
Expand Down
26 changes: 26 additions & 0 deletions docker-compose-cache.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
{
"target": {
"pgstac": {
"cache-from": [
"type=gha"
],
"cache-to": [
"type=gha,mode=max"
],
"output": [
"type=docker"
]
},
"pypgstac": {
"cache-from": [
"type=gha"
],
"cache-to": [
"type=gha,mode=max"
],
"output": [
"type=docker"
]
}
}
}

0 comments on commit 6adc076

Please sign in to comment.