Skip to content

Commit 10540f9

Browse files
committed
Remove unnecessary build arguments from bake targets that are now referencing the build contexts
1 parent a1373bd commit 10540f9

File tree

1 file changed

+2
-16
lines changed

1 file changed

+2
-16
lines changed

docker-bake.hcl

Lines changed: 2 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -56,9 +56,6 @@ target "multicosim" {
5656
contexts = {
5757
ubuntu = "target:ubuntu"
5858
}
59-
args = {
60-
UBUNTU_VERSION = UBUNTU_VERSION
61-
}
6259
tags = [
6360
"ghcr.io/cpslab-asu/multicosim:${MULTICOSIM_VERSION}"
6461
]
@@ -95,17 +92,13 @@ target "gazebo-rocky" {
9592
}
9693

9794
group "gazebo" {
98-
targets = ["gazebo-ubuntu", "gazebo-rocky"]
95+
targets = ["gazebo-ubuntu"]
9996
}
10097

10198
target "px4-gazebo" {
10299
context = "./px4"
103100
contexts = {
104-
ubuntu = "target:gazebo-ubuntu",
105-
}
106-
args = {
107-
UBUNTU_VERSION = UBUNTU_VERSION
108-
GAZEBO_VERSION = GAZEBO_VERSION
101+
gazebo = "target:gazebo-ubuntu",
109102
}
110103
dockerfile = "gazebo.Dockerfile"
111104
tags = [
@@ -124,9 +117,7 @@ target "px4-firmware" {
124117
multicosim = "target:multicosim"
125118
}
126119
args = {
127-
UBUNTU_VERSION = UBUNTU_VERSION
128120
PX4_VERSION = PX4_VERSION
129-
MULTICOSIM_VERSION = MULTICOSIM_VERSION
130121
}
131122
dockerfile = "firmware.Dockerfile"
132123
tags = [
@@ -149,9 +140,7 @@ target "ardupilot-firmware" {
149140
multicosim = "target:multicosim"
150141
}
151142
args = {
152-
UBUNTU_VERSION = UBUNTU_VERSION
153143
ARDUPILOT_VERSION = ARDUPILOT_VERSION
154-
MULTICOSIM_VERSION = MULTICOSIM_VERSION
155144
}
156145
dockerfile = "firmware.Dockerfile"
157146
tags = [
@@ -164,9 +153,6 @@ target "ardupilot-gazebo" {
164153
contexts = {
165154
gazebo = "target:gazebo-ubuntu"
166155
}
167-
args = {
168-
GAZEBO_VERSION = GAZEBO_VERSION
169-
}
170156
dockerfile = "gazebo.Dockerfile"
171157
tags = [
172158
"ghcr.io/cpslab-asu/multicosim/ardupilot/gazebo:${MULTICOSIM_VERSION}"

0 commit comments

Comments
 (0)