Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[FIX] update bake definition #863

Merged
merged 1 commit into from
Jan 9, 2025
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading