From aa4a1dc7bd948732db0a6d4a53175c62ed2fdaf3 Mon Sep 17 00:00:00 2001 From: Dmitry Date: Mon, 11 Oct 2021 10:10:52 +0300 Subject: [PATCH] use docker/build-push-action --- .github/workflows/dockerimage.yml | 13 +++++++++---- 1 file changed, 9 insertions(+), 4 deletions(-) diff --git a/.github/workflows/dockerimage.yml b/.github/workflows/dockerimage.yml index c76c527..37d746f 100644 --- a/.github/workflows/dockerimage.yml +++ b/.github/workflows/dockerimage.yml @@ -17,10 +17,15 @@ jobs: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v2 - - name: Build the Docker image - run: docker build . --file Dockerfile --tag b4tman/armhf-alpine-qemu:test + - uses: actions/checkout@v2 + - name: Build image + uses: docker/build-push-action@v2 + with: + context: . + push: false + tags: b4tman/armhf-alpine-qemu:test + outputs: type=image,name=b4tman/armhf-alpine-qemu:test,push=false - name: Test image env: DOCKER_BUILDKIT: 0 - run: docker build -t tmp/test1 -f test/Dockerfile test + run: docker build --force-rm -t tmp/test1 -f test/Dockerfile test