From 89a3a3a60c3319564b6eeae949e4a37463261894 Mon Sep 17 00:00:00 2001 From: Laurynas Butkus Date: Fri, 23 Feb 2024 22:36:15 +0200 Subject: [PATCH] Build docker image --- .github/workflows/main.yml | 29 +++++++++++++++++++++++++++++ Dockerfile | 2 +- 2 files changed, 30 insertions(+), 1 deletion(-) create mode 100644 .github/workflows/main.yml diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml new file mode 100644 index 0000000..8347fef --- /dev/null +++ b/.github/workflows/main.yml @@ -0,0 +1,29 @@ +name: ci + +on: + push: + branches: + - 'main' + +jobs: + docker: + runs-on: ubuntu-latest + steps: + - + name: Set up QEMU + uses: docker/setup-qemu-action@v3 + - + name: Set up Docker Buildx + uses: docker/setup-buildx-action@v3 + - + name: Login to Docker Hub + uses: docker/login-action@v3 + with: + username: ${{ secrets.DOCKERHUB_USERNAME }} + password: ${{ secrets.DOCKERHUB_TOKEN }} + - + name: Build and push + uses: docker/build-push-action@v5 + with: + push: true + tags: kurmisrainas/utility-meter-reader:latest diff --git a/Dockerfile b/Dockerfile index 4ffac2d..7b61ad9 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,4 +1,4 @@ -FROM python:3.11-slim-bookworm +FROM python:3.12-slim WORKDIR /app