Skip to content

Commit

Permalink
Publish ghcr.io/rust-lang/rust image using default workflow token
Browse files Browse the repository at this point in the history
  • Loading branch information
Kobzol committed Mar 18, 2024
1 parent dc219bc commit 868c810
Showing 1 changed file with 9 additions and 8 deletions.
17 changes: 9 additions & 8 deletions .github/workflows/nightly.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ name: Nightly Publish

permissions:
contents: read
packages: write

on:
push:
Expand Down Expand Up @@ -69,12 +70,12 @@ jobs:
- uses: actions/checkout@v4
- uses: docker/setup-qemu-action@v3
- uses: docker/setup-buildx-action@v3
# - uses: docker/login-action@v3
# if: github.event_name != 'pull_request'
# with:
# registry: ghcr.io
# username: ${{ github.actor }}
# password: ${{ secrets.GITHUB_TOKEN }}
- uses: docker/login-action@v3
if: github.event_name != 'pull_request'
with:
registry: ghcr.io
username: rust-lang
password: ${{ secrets.GITHUB_TOKEN }}

- uses: docker/login-action@v3
if: github.event_name != 'pull_request'
Expand All @@ -87,7 +88,7 @@ jobs:
with:
images: |
rustlang/rust
# ghcr.io/rust-lang/rust
ghcr.io/rust-lang/rust
tags: ${{ matrix.tags }}

- uses: docker/build-push-action@v5
Expand All @@ -96,4 +97,4 @@ jobs:
platforms: ${{ matrix.platforms }}
push: ${{ github.event_name != 'pull_request' }}
tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}
labels: ${{ steps.meta.outputs.labels }}

0 comments on commit 868c810

Please sign in to comment.