Skip to content

Commit

Permalink
Switch to Actions token for GHCR (#682)
Browse files Browse the repository at this point in the history
  • Loading branch information
AaronCrawfis authored Oct 16, 2023
1 parent ae85801 commit c67fe7f
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions .github/workflows/radius-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,6 @@ env:
RELEASE_PATH: ./release
# ORAS (OCI Registry As Storage) CLI version
ORAS_VERSION: 1.1.0
# GitHub Actor for pushing images to GHCR
GHCR_ACTOR: rad-ci-bot
# Container registry url for GitHub container registry.
CONTAINER_REGISTRY: 'ghcr.io/radius-project/radius'
# URL to get source code for building the image
Expand Down Expand Up @@ -257,6 +255,9 @@ jobs:
name: Publish to GHCR
needs: ["build", "vscode-bicep-build"]
runs-on: ubuntu-latest
permissions:
contents: read
packages: write
strategy:
matrix:
runtime:
Expand Down Expand Up @@ -296,8 +297,8 @@ jobs:
uses: docker/login-action@v2
with:
registry: ghcr.io
username: ${{ env.GHCR_ACTOR }}
password: ${{ secrets.GH_RAD_CI_BOT_PAT }}
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}

- uses: oras-project/setup-oras@v1
with:
Expand Down

0 comments on commit c67fe7f

Please sign in to comment.