From c9272ab88fc6e4fe4d6a603fd7063950924a233f Mon Sep 17 00:00:00 2001 From: ScientiaSitPotentia Date: Mon, 25 Jan 2021 21:05:51 +0100 Subject: [PATCH] Create docker-image.yml --- .github/workflows/docker-image.yml | 36 ++++++++++++++++++++++++++++++ 1 file changed, 36 insertions(+) create mode 100644 .github/workflows/docker-image.yml diff --git a/.github/workflows/docker-image.yml b/.github/workflows/docker-image.yml new file mode 100644 index 0000000..5a1793d --- /dev/null +++ b/.github/workflows/docker-image.yml @@ -0,0 +1,36 @@ +name: Publish Docker image + +on: + release: + types: [published] + +jobs: + main: + runs-on: ubuntu-latest + steps: + # in the future we'll add an arm image for the raspberry + - + 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.DOCKERHUB_USERNAME }} + password: ${{ secrets.DOCKER_PASSWORD }} + - + name: Build and push + id: docker_build + uses: docker/build-push-action@v2 + with: + push: true + tags: livingwithhippos/unchainedbotkotlin:latest + build-args: | + arg1=value1 + arg2=value2 + - + name: Image digest + run: echo ${{ steps.docker_build.outputs.digest }}