File tree 2 files changed +8
-14
lines changed
2 files changed +8
-14
lines changed Original file line number Diff line number Diff line change @@ -88,17 +88,15 @@ jobs:
88
88
- name : Build and push with Docker Bake
89
89
uses : docker/bake-action@v6
90
90
with :
91
- files : |
92
- ./docker-bake.hcl
93
- ${{ steps.meta.outputs.bake-file }}
91
+ files : ./docker-bake.hcl
94
92
targets : multi-platform
95
93
push : ${{ github.event_name != 'pull_request' }}
96
94
set : |
95
+ *.tags=${{ steps.meta.outputs.tags }}
97
96
*.cache-from=type=gha,scope=${{ github.workflow }}
98
97
*.cache-to=type=gha,mode=max,scope=${{ github.workflow }}
99
98
*.platform=linux/amd64,linux/arm64
100
99
*.args.PYTHON_VERSION=3.11
101
- *.args.PORT=3100
102
100
REGISTRY_URL=${{ env.REGISTRY_URL }}
103
101
REGISTRY_USER=${{ env.REGISTRY_USER }}
104
102
IMAGE_NAME=${{ env.IMAGE_NAME }}
Original file line number Diff line number Diff line change @@ -20,23 +20,19 @@ variable "DOCKERFILE" {
20
20
}
21
21
22
22
// Base target with shared configuration
23
- target "docker-metadata-action" {
24
- tags = [
25
- " ${ REGISTRY_URL } /${ REGISTRY_USER } /${ IMAGE_NAME } :${ TAG } " ,
26
- " ${ REGISTRY_URL } /${ REGISTRY_USER } /${ IMAGE_NAME } :latest" ,
27
- ]
28
- }
29
-
30
- // Default target that extends the base
31
- target "build" {
32
- inherits = [" docker-metadata-action" ]
23
+ target "base" {
33
24
context = " ."
34
25
dockerfile = " ${ DOCKERFILE } "
35
26
args = {
36
27
PYTHON_VERSION = " 3.11"
37
28
}
38
29
}
39
30
31
+ // Default target that extends the base
32
+ target "build" {
33
+ inherits = [" base" ]
34
+ }
35
+
40
36
// Group target to build both platforms
41
37
group "default" {
42
38
targets = [" build" ]
You can’t perform that action at this time.
0 commit comments