diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 06ca5a0..a695dfc 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -18,6 +18,13 @@ jobs: - name: Checkout code uses: actions/checkout@v3 + # Log in to the GitHub Container Registry (ghcr.io) + - name: Log in to GitHub Container Registry + uses: docker/login-action@v2 + with: + registry: ghcr.io + username: ${{ github.actor }} + password: ${{ secrets.GITHUB_TOKEN }} - name: Docker info run: docker info @@ -48,6 +55,5 @@ jobs: name: "Build ddev ${{ matrix.version }} multi-arch image" shell: 'script -q -e -c "bash {0}"' run: | - echo "${{ secrets.GITHUB_TOKEN }}" | docker login ghcr.io -u ${{ github.actor }} --password-stdin docker buildx create --use --platform=linux/arm64,linux/amd64 ./build.sh -v ${{ matrix.version }} -x -p