Skip to content

Commit

Permalink
oraasclient env update
Browse files Browse the repository at this point in the history
Signed-off-by: Aryan Rajoria <aryanrajoria1003@gmail.com>
  • Loading branch information
aryan-rajoria committed Nov 6, 2024
1 parent 145cd61 commit df412bd
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/build-meson.yml
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ jobs:
mkdir -p temp
cd blint-db
python blint_db/cli.py -Z1
echo "$GITHUB_USERNAME;;$GITHUB_TOKEN" | python ./.oras/orasclient.py
python ./.oras/orasclient.py
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
GITHUB_USERNAME: ${{ github.actor }}
2 changes: 1 addition & 1 deletion .github/workflows/build-vcpkg.yml
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ jobs:
mkdir -p temp
cd blint-db/
python blint-db/blint_db/cli.py -Z2
echo "$GITHUB_USERNAME;;$GITHUB_TOKEN" | python ./.oras/orasclient.py
python ./.oras/orasclient.py
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
GITHUB_USERNAME: ${{ github.actor }}
6 changes: 3 additions & 3 deletions .oras/orasclient.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,11 @@

client = oras.client.OrasClient()

input_value = input().split(";;")
token = os.getenv("GITHUB_USERNAME", "")
username = os.getenv("GITHUB_USERNAME", "")

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

print(os.getcwd())
client.login(password=token, username=username)

client.push(
target="ghcr.io/appthreat/blintdb-meson:v0.1",
Expand Down

0 comments on commit df412bd

Please sign in to comment.