File tree 2 files changed +7
-11
lines changed
2 files changed +7
-11
lines changed Original file line number Diff line number Diff line change @@ -94,11 +94,11 @@ jobs:
94
94
targets : multi-platform
95
95
push : ${{ github.event_name != 'pull_request' }}
96
96
set : |
97
+ *.tags=${{ steps.meta.outputs.tags }}
97
98
*.cache-from=type=gha,scope=${{ github.workflow }}
98
99
*.cache-to=type=gha,mode=max,scope=${{ github.workflow }}
99
100
*.platform=linux/amd64,linux/arm64
100
101
*.args.PYTHON_VERSION=3.11
101
- *.args.PORT=3100
102
102
REGISTRY_URL=${{ env.REGISTRY_URL }}
103
103
REGISTRY_USER=${{ env.REGISTRY_USER }}
104
104
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