Skip to content

Commit

Permalink
update bake definition (#863)
Browse files Browse the repository at this point in the history
  • Loading branch information
jdkent authored Jan 9, 2025
1 parent 0a9ee6e commit 7d66822
Showing 1 changed file with 14 additions and 7 deletions.
21 changes: 14 additions & 7 deletions .github/workflows/workflow.yml
Original file line number Diff line number Diff line change
Expand Up @@ -43,12 +43,13 @@ jobs:
password: ${{ secrets.GITHUB_TOKEN }}
-
name: Build and push
uses: docker/bake-action@master
uses: docker/bake-action@v6.0.0
with:
files: docker-compose.yml,docker-compose.dev.yml
push: true
load: false
workdir: compose
source: "{{defaultContext}}:compose"
set: |
compose.tags=ghcr.io/${{ github.repository_owner }}/neurosynth_compose:${{ hashFiles('**/compose/neurosynth_compose/**') }}
compose.cache-from=type=registry,ref=ghcr.io/${{ github.repository_owner }}/neurosynth_compose:${{ hashFiles('**/compose/neurosynth_compose/**') }}
Expand Down Expand Up @@ -94,12 +95,13 @@ jobs:
password: ${{ secrets.GITHUB_TOKEN }}
-
name: Build and push
uses: docker/bake-action@master
uses: docker/bake-action@v6.0.0
with:
files: docker-compose.yml,docker-compose.dev.yml
push: true
load: false
workdir: store
source: "{{defaultContext}}:store"
set: |
neurostore.tags=ghcr.io/${{ github.repository_owner }}/neurostore:${{ hashFiles('**/store/neurostore/**') }}
neurostore.cache-from=type=registry,ref=ghcr.io/${{ github.repository_owner }}/neurostore:${{ hashFiles('**/store/neurostore/**') }}
Expand Down Expand Up @@ -136,12 +138,13 @@ jobs:
cp .env.example .env
-
name: load images
uses: docker/bake-action@master
uses: docker/bake-action@v6.0.0
with:
files: docker-compose.yml,docker-compose.dev.yml
push: false
load: true
workdir: store
source: "{{defaultContext}}:store"
set: |
neurostore.cache-from=type=gha,scope=cached-neurostore
store_nginx.cache-from=type=gha,scope=cached-store-nginx
Expand Down Expand Up @@ -205,12 +208,13 @@ jobs:
cp .env.example .env
-
name: load images
uses: docker/bake-action@master
uses: docker/bake-action@v6.0.0
with:
files: docker-compose.yml,docker-compose.dev.yml
push: false
load: true
workdir: compose
source: "{{defaultContext}}:compose"
set: |
compose.cache-from=type=gha,scope=cached-compose
compose_nginx.cache-from=type=gha,scope=cached-compose-nginx
Expand Down Expand Up @@ -295,12 +299,13 @@ jobs:
cp .env.example .env
-
name: load images
uses: docker/bake-action@master
uses: docker/bake-action@v6.0.0
with:
files: docker-compose.yml,docker-compose.dev.yml
push: false
load: true
workdir: compose
source: "{{defaultContext}}:compose"
set: |
compose.cache-from=type=gha,scope=cached-compose
compose_nginx.cache-from=type=gha,scope=cached-compose-nginx
Expand Down Expand Up @@ -378,25 +383,27 @@ jobs:
cp store/.env.example store/.env
-
name: load compose images
uses: docker/bake-action@master
uses: docker/bake-action@v6.0.0
with:
files: docker-compose.yml,docker-compose.dev.yml
push: false
load: true
workdir: compose
source: "{{defaultContext}}:compose"
set: |
compose.cache-from=type=gha,scope=cached-compose
compose_nginx.cache-from=type=gha,scope=cached-compose-nginx
compose_pgsql.cache-from=type=gha,scope=cached-compose-pgsql
compose_worker.cache-from=type=gha,scope=cached-compose-worker
-
name: load store images
uses: docker/bake-action@master
uses: docker/bake-action@v6.0.0
with:
files: docker-compose.yml,docker-compose.dev.yml
push: false
load: true
workdir: store
source: "{{defaultContext}}:store"
set: |
neurostore.cache-from=type=gha,scope=cached-neurostore
store_nginx.cache-from=type=gha,scope=cached-store-nginx
Expand Down

0 comments on commit 7d66822

Please sign in to comment.