From 18f23c6df6d749db46f075b555ac507a0261bb28 Mon Sep 17 00:00:00 2001 From: CrazyMax <1951866+crazy-max@users.noreply.github.com> Date: Wed, 25 Jun 2025 10:07:26 +0200 Subject: [PATCH] ci: fix build job Signed-off-by: CrazyMax <1951866+crazy-max@users.noreply.github.com> --- .github/workflows/ci.yaml | 18 +++++++++++------- 1 file changed, 11 insertions(+), 7 deletions(-) diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index d9c22fd3..964be9b4 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -23,12 +23,8 @@ jobs: runs-on: ubuntu-latest steps: - - name: Login to DockerHub - if: github.event_name != 'pull_request' - uses: docker/login-action@v3 - with: - username: ${{ vars.DOCKERPUBLICBOT_USERNAME }} - password: ${{ secrets.DOCKERPUBLICBOT_WRITE_PAT }} + name: Checkout + uses: actions/checkout@v4 - name: Set up QEMU uses: docker/setup-qemu-action@v3 @@ -56,13 +52,21 @@ jobs: org.opencontainers.image.title=BuildKit Syft scanner org.opencontainers.image.description=SBOM generation for BuildKit images org.opencontainers.image.vendor=Docker Inc. + - + name: Login to DockerHub + if: github.event_name != 'pull_request' + uses: docker/login-action@v3 + with: + username: ${{ vars.DOCKERPUBLICBOT_USERNAME }} + password: ${{ secrets.DOCKERPUBLICBOT_WRITE_PAT }} - name: Build uses: docker/bake-action@v6 with: + source: . files: | ./docker-bake.hcl - cwd://${{ steps.meta.outputs.bake-file }} + ${{ steps.meta.outputs.bake-file }} targets: image-all push: ${{ github.event_name != 'pull_request' }} set: |