From 84f9d417cf044c558862911f34a5e7eb240b10eb Mon Sep 17 00:00:00 2001 From: soxoj <31013580+soxoj@users.noreply.github.com> Date: Sat, 8 May 2021 15:16:37 +0300 Subject: [PATCH] Create build-docker-image.yml --- .github/workflows/build-docker-image.yml | 33 ++++++++++++++++++++++++ 1 file changed, 33 insertions(+) create mode 100644 .github/workflows/build-docker-image.yml diff --git a/.github/workflows/build-docker-image.yml b/.github/workflows/build-docker-image.yml new file mode 100644 index 0000000..08ab283 --- /dev/null +++ b/.github/workflows/build-docker-image.yml @@ -0,0 +1,33 @@ +name: Build docker image and push to DockerHub + +on: + push: + tags: + - "v*.*.*" + +jobs: + docker: + runs-on: ubuntu-latest + steps: + - + name: Set up QEMU + uses: docker/setup-qemu-action@v1 + - + name: Set up Docker Buildx + uses: docker/setup-buildx-action@v1 + - + name: Login to DockerHub + uses: docker/login-action@v1 + with: + username: ${{ secrets.DOCKER_HUB_USERNAME }} + password: ${{ secrets.DOCKER_HUB_ACCESS_TOKEN }} + - + name: Build and push + id: docker_build + uses: docker/build-push-action@v2 + with: + push: true + tags: ${{ secrets.DOCKER_HUB_USERNAME }}/maigret:latest + - + name: Image digest + run: echo ${{ steps.docker_build.outputs.digest }}