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 1/2] 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 From 96e3ad09715d7bdd86f8aff5df7d6ec6eb1520c5 Mon Sep 17 00:00:00 2001 From: bjoernellens1 <64093272+bjoernellens1@users.noreply.github.com> Date: Mon, 16 Oct 2023 08:32:01 +0200 Subject: [PATCH 2/2] Update docker-buildx-bake-build.yml update --- .github/workflows/docker-buildx-bake-build.yml | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/.github/workflows/docker-buildx-bake-build.yml b/.github/workflows/docker-buildx-bake-build.yml index 960f7e1..03c46c1 100644 --- a/.github/workflows/docker-buildx-bake-build.yml +++ b/.github/workflows/docker-buildx-bake-build.yml @@ -11,10 +11,13 @@ jobs: steps: - name: Checkout code - uses: actions/checkout@v2 + uses: actions/checkout@v4 + + #- name: Set up QEMU + # run: docker run --rm --privileged multiarch/qemu-user-static --reset -p yes - name: Set up QEMU - run: docker run --rm --privileged multiarch/qemu-user-static --reset -p yes + uses: docker/setup-qemu-action@v3 # - name: Login to Docker Hub (if needed) # uses: docker/login-action@v1 @@ -23,12 +26,12 @@ jobs: # password: ${{ secrets.DOCKER_PASSWORD }} - name: Set up Docker Buildx - uses: docker/setup-buildx-action@v1 + uses: docker/setup-buildx-action@v3 #- 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 + uses: docker/login-action@v3 with: registry: ghcr.io username: ${{github.actor}}