From e4697f4e5c5b50ce646174fd2fa22a7a457cdf70 Mon Sep 17 00:00:00 2001 From: Bill Church Date: Fri, 29 Jul 2022 15:42:59 -0400 Subject: [PATCH] test: workflow --- .github/workflows/action-test.yml | 27 ++++++++++++++++++++++++--- 1 file changed, 24 insertions(+), 3 deletions(-) diff --git a/.github/workflows/action-test.yml b/.github/workflows/action-test.yml index 8d09208..6b8e75a 100644 --- a/.github/workflows/action-test.yml +++ b/.github/workflows/action-test.yml @@ -32,7 +32,28 @@ jobs: echo ::set-output name=tags::${TAGS} echo ::set-output name=docker_image::${DOCKER_IMAGE} + - name: Set up QEMU + uses: docker/setup-qemu-action@master + with: + platforms: all - - name: env - run: env - \ No newline at end of file + - name: Set up Docker Buildx + id: buildx + uses: docker/setup-buildx-action@master + + - name: Login to DockerHub + if: github.event_name != 'pull_request' + uses: docker/login-action@v1 + with: + username: ${{ secrets.DOCKER_USERNAME }} + password: ${{ secrets.DOCKER_PASSWORD }} + + - name: Build + uses: docker/build-push-action@v2 + with: + builder: ${{ steps.buildx.outputs.name }} + context: . + file: ./Dockerfile + platforms: linux/amd64,linux/arm64,linux/ppc64le + push: true + tags: ${{ steps.prep.outputs.tags }} \ No newline at end of file