Skip to content

Commit

Permalink
Add authfile argument to rpm-ostree command
Browse files Browse the repository at this point in the history
  • Loading branch information
ggiguash committed Jan 19, 2025
1 parent 3ec859c commit fecb474
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions test/bin/pyutils/build_bootc_images.py
Original file line number Diff line number Diff line change
Expand Up @@ -423,9 +423,12 @@ def ostree_rev_in_registry(ce_imgref):
common.record_junit(ce_path, "process-container-encapsulate", "SKIPPED")
return

# Run the container image build command
# Run the container image build command.
# The REGISTRY_AUTH_FILE setting is required for skopeo to succeed
# in accessing container registries that might require authentication.
build_args = [
"sudo", "rpm-ostree", "compose",
"sudo", f"REGISTRY_AUTH_FILE={PULL_SECRET}",
"rpm-ostree", "compose",
"container-encapsulate",
"--repo", os.path.join(IMAGEDIR, "repo"),
ce_imgref,
Expand Down

0 comments on commit fecb474

Please sign in to comment.