Skip to content

Commit bf1473f

Browse files
authored
Merge pull request #185 from Kobzol/ci-publish-token
Publish ghcr.io/rust-lang/rust image using default workflow token
2 parents dc219bc + 868c810 commit bf1473f

File tree

1 file changed

+9
-8
lines changed

1 file changed

+9
-8
lines changed

.github/workflows/nightly.yml

Lines changed: 9 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@ name: Nightly Publish
22

33
permissions:
44
contents: read
5+
packages: write
56

67
on:
78
push:
@@ -69,12 +70,12 @@ jobs:
6970
- uses: actions/checkout@v4
7071
- uses: docker/setup-qemu-action@v3
7172
- uses: docker/setup-buildx-action@v3
72-
# - uses: docker/login-action@v3
73-
# if: github.event_name != 'pull_request'
74-
# with:
75-
# registry: ghcr.io
76-
# username: ${{ github.actor }}
77-
# password: ${{ secrets.GITHUB_TOKEN }}
73+
- uses: docker/login-action@v3
74+
if: github.event_name != 'pull_request'
75+
with:
76+
registry: ghcr.io
77+
username: rust-lang
78+
password: ${{ secrets.GITHUB_TOKEN }}
7879

7980
- uses: docker/login-action@v3
8081
if: github.event_name != 'pull_request'
@@ -87,7 +88,7 @@ jobs:
8788
with:
8889
images: |
8990
rustlang/rust
90-
# ghcr.io/rust-lang/rust
91+
ghcr.io/rust-lang/rust
9192
tags: ${{ matrix.tags }}
9293

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

0 commit comments

Comments
 (0)