-
Notifications
You must be signed in to change notification settings - Fork 389
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Enhance CI Compatibility with Different Docker Registry
When a user switches the Docker registry for image access, building both Linux and Windows images still pulls images from the default registry. This patch improves compatibility for registry changes. Signed-off-by: Shuyang Xin <[email protected]>
- Loading branch information
1 parent
61f55bb
commit 16579ab
Showing
7 changed files
with
17 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -12,7 +12,9 @@ | |
# See the License for the specific language governing permissions and | ||
# limitations under the License. | ||
|
||
FROM ubuntu:24.04 AS ovs-debs | ||
ARG DOCKER_REGISTRY | ||
|
||
FROM ${DOCKER_REGISTRY}/ubuntu:24.04 AS ovs-debs | ||
|
||
# Some patches may not apply cleanly if a non-default version is provided. | ||
# See build/images/deps/ovs-version for the default version. | ||
|
@@ -39,7 +41,7 @@ RUN wget -q -O - https://www.openvswitch.org/releases/openvswitch-$OVS_VERSION.t | |
cd / && rm -rf /tmp/openvswitch* | ||
|
||
|
||
FROM ubuntu:24.04 | ||
FROM ${DOCKER_REGISTRY}/ubuntu:24.04 | ||
|
||
LABEL maintainer="Antrea <[email protected]>" | ||
LABEL description="A Docker image based on Ubuntu 24.04 which includes Open vSwitch built from source." | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters