Skip to content

Commit

Permalink
Use docker bake
Browse files Browse the repository at this point in the history
  • Loading branch information
jplock committed Dec 20, 2024
1 parent d1c49bf commit 8590dd1
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 8 deletions.
2 changes: 0 additions & 2 deletions .github/workflows/docker-bake.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,9 @@ on:
push:
branches:
- main
- jp-bake
pull_request:
branches:
- main
- jp-bake

concurrency:
group: ${{ github.workflow }}-${{ github.ref_name }}
Expand Down
5 changes: 1 addition & 4 deletions buildspec.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,13 +7,10 @@ phases:
build:
commands:
- echo Build started on `date`
- cd parent
- make build-docker
- docker buildx bake
- CONTAINER_ID=$(docker create parent-vault:latest)
- docker cp $CONTAINER_ID:/app/parent-vault ./parent-vault
- docker rm $CONTAINER_ID
- cd ../enclave
- make build-docker
- echo Build completed on `date`
post_build:
commands:
Expand Down
2 changes: 0 additions & 2 deletions docker-bake.hcl
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@ target "parent" {
]
platforms = ["linux/amd64"]
tags = ["parent-vault:latest"]
output = ["type=cacheonly"]
cache-to = ["type=gha,ignore-error=true,mode=max,scope=parent"]
cache-from = ["type=gha,scope=parent"]
}
Expand All @@ -31,7 +30,6 @@ target "enclave" {
]
platforms = ["linux/amd64"]
tags = ["enclave-vault:latest"]
output = ["type=cacheonly"]
cache-to = ["type=gha,ignore-error=true,mode=max,scope=enclave"]
cache-from = ["type=gha,scope=enclave"]
}

0 comments on commit 8590dd1

Please sign in to comment.