From 868c810e71b7b4bd63622406c59f3115c1aca2ff Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jakub=20Ber=C3=A1nek?= Date: Mon, 18 Mar 2024 22:07:13 +0100 Subject: [PATCH] Publish ghcr.io/rust-lang/rust image using default workflow token --- .github/workflows/nightly.yml | 17 +++++++++-------- 1 file changed, 9 insertions(+), 8 deletions(-) diff --git a/.github/workflows/nightly.yml b/.github/workflows/nightly.yml index 59aa9f2..73106c3 100644 --- a/.github/workflows/nightly.yml +++ b/.github/workflows/nightly.yml @@ -2,6 +2,7 @@ name: Nightly Publish permissions: contents: read + packages: write on: push: @@ -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' @@ -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 @@ -96,4 +97,4 @@ jobs: platforms: ${{ matrix.platforms }} push: ${{ github.event_name != 'pull_request' }} tags: ${{ steps.meta.outputs.tags }} - labels: ${{ steps.meta.outputs.labels }} \ No newline at end of file + labels: ${{ steps.meta.outputs.labels }}