From 09889b91680eab8a58ea041b96a6c63f6f6bb282 Mon Sep 17 00:00:00 2001 From: bjoernellens1 <64093272+bjoernellens1@users.noreply.github.com> Date: Mon, 16 Oct 2023 08:23:43 +0200 Subject: [PATCH] Update docker-buildx-bake-build.yml new login method for ghcr --- .github/workflows/docker-buildx-bake-build.yml | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/.github/workflows/docker-buildx-bake-build.yml b/.github/workflows/docker-buildx-bake-build.yml index 4ab02f3..960f7e1 100644 --- a/.github/workflows/docker-buildx-bake-build.yml +++ b/.github/workflows/docker-buildx-bake-build.yml @@ -25,9 +25,15 @@ jobs: - name: Set up Docker Buildx uses: docker/setup-buildx-action@v1 - - name: Login to GitHub Container Registry - run: echo ${{ secrets.GHCR_PAT }} | docker login ghcr.io -u ${{ github.repository_owner }} --password-stdin - + #- name: Login to GitHub Container Registry + # run: echo ${{ secrets.GHCR_PAT }} | docker login ghcr.io -u ${{ github.repository_owner }} --password-stdin + - name: 'Login to GitHub Container Registry' + uses: docker/login-action@v1 + with: + registry: ghcr.io + username: ${{github.actor}} + password: ${{secrets.GHCR_PAT}} + - name: Build and Push Docker Compose Services run: | docker buildx bake --push