Skip to content

Commit

Permalink
correct registry
Browse files Browse the repository at this point in the history
  • Loading branch information
amber-beasley-liatrio committed Jan 16, 2025
1 parent 5c0123d commit 9122606
Showing 1 changed file with 10 additions and 9 deletions.
19 changes: 10 additions & 9 deletions .github/workflows/build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,20 +8,21 @@ jobs:
oras:
permissions:
contents: write
id-token: write
#id-token: write
runs-on: ubuntu-latest
steps:
- uses: octo-sts/action@6177b4481c00308b3839969c3eca88c96a91775f # v1.0.0
id: octo-sts
with:
# can only run on main branch
scope: amber-beasley-liatrio/learning-actions
identity: semantic-release
# - uses: octo-sts/action@6177b4481c00308b3839969c3eca88c96a91775f # v1.0.0
# id: octo-sts
# with:
# # can only run on main branch
# scope: amber-beasley-liatrio/learning-actions
# identity: semantic-release
### ${{ steps.octo-sts.outputs.token }}
- name: Setup oras
uses: oras-project/setup-oras@v1
- name: Oras version
run: oras version
- name: Oras login
run: echo "${{ steps.octo-sts.outputs.token }}" | oras login ghcr.io --username ${{ github.actor }} --password-stdin
run: echo "${{ github.token }}" | oras login ghcr.io --username ${{ github.actor }} --password-stdin
- name: Oras push
run: oras push ghcr.io/someorg/policy-hello:1.0.0
run: oras push ghcr.io/amber-beasley-liatrio/policy-hello:1.0.0

0 comments on commit 9122606

Please sign in to comment.