Skip to content

Commit

Permalink
fix orasclient.py
Browse files Browse the repository at this point in the history
Signed-off-by: Aryan Rajoria <[email protected]>
  • Loading branch information
aryan-rajoria committed Nov 6, 2024
1 parent dd72b8e commit 3c5bfde
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions .oras/orasclient.py
Original file line number Diff line number Diff line change
@@ -1,16 +1,19 @@
import oras.client
import os

client = oras.client.OrasClient()

input_value = input().split(";;")

client.login(password=input_value[1], username=input_value[0])

print(os.getcwd())

client.push(
target="ghcr.io/appthreat/blintdb-meson:v0.1",
config_path="./.oras/config.json",
annotation_file="./.oras/annotations.json",
files=[
("./.oras/config.json", "application/vnd.oras.config.v1+json"),
("./.oras/annotations.json", "application/vnd.oras.annotation.v1+json"),
("./blint.db", "application/vnd.appthreat.vdb.layer.v1+tar"),
"./blint.db:application/vnd.appthreat.vdb.layer.v1+tar",
],
)

0 comments on commit 3c5bfde

Please sign in to comment.