From e2a3bd00ccd5918560f2dc3d7d66087992722b65 Mon Sep 17 00:00:00 2001 From: bjoernellens1 <64093272+bjoernellens1@users.noreply.github.com> Date: Tue, 26 Sep 2023 12:15:09 +0200 Subject: [PATCH] Create docker-buildx-bake-build.yml --- .../workflows/docker-buildx-bake-build.yml | 33 +++++++++++++++++++ 1 file changed, 33 insertions(+) create mode 100644 .github/workflows/docker-buildx-bake-build.yml diff --git a/.github/workflows/docker-buildx-bake-build.yml b/.github/workflows/docker-buildx-bake-build.yml new file mode 100644 index 0000000..952e75c --- /dev/null +++ b/.github/workflows/docker-buildx-bake-build.yml @@ -0,0 +1,33 @@ +name: Docker Compose Build + +on: + push: + branches: + - main # Change this to your main branch name + +jobs: + build: + runs-on: ubuntu-latest + + steps: + - name: Checkout code + uses: actions/checkout@v2 + + - name: Set up QEMU + run: docker run --rm --privileged multiarch/qemu-user-static --reset -p yes + + - name: Login to Docker Hub (if needed) + uses: docker/login-action@v1 + with: + username: ${{ secrets.DOCKER_USERNAME }} + password: ${{ secrets.DOCKER_PASSWORD }} + + - name: Set up Docker Buildx + uses: docker/setup-buildx-action@v1 + + - name: Build and Push Docker Compose Services + run: | + docker buildx bake -f docker-compose.yml + docker buildx bake -f docker-compose.yml --push + #env: + # COMPOSE_FILE: docker-compose.yml