From 58a0412091ba58a6ab6865b1d2b2b192804e8156 Mon Sep 17 00:00:00 2001 From: Bill Church Date: Fri, 29 Jul 2022 16:06:35 -0400 Subject: [PATCH] test: workflow --- .github/workflows/action-test.yml | 29 +++++++++++++++++++++++++---- 1 file changed, 25 insertions(+), 4 deletions(-) diff --git a/.github/workflows/action-test.yml b/.github/workflows/action-test.yml index e692076..dd69649 100644 --- a/.github/workflows/action-test.yml +++ b/.github/workflows/action-test.yml @@ -40,7 +40,28 @@ jobs: echo ::set-output name=tags::${TAGS} echo ::set-output name=docker_image::${DOCKER_IMAGE} - - name: get env - run: env - - name: test - run: "echo ${{ steps.prep.outputs.tags }}" \ No newline at end of file + - name: Set up QEMU + uses: docker/setup-qemu-action@master + with: + platforms: all + + - 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