From a25b1e5dd95426f86ea0866d9075891636179c7c Mon Sep 17 00:00:00 2001 From: Luke Tainton Date: Thu, 2 Jan 2025 15:17:00 +0000 Subject: [PATCH] Initial --- .gitea/workflows/release.yml | 35 +++++++++++++++++++++++++++++++++++ Dockerfile | 10 ++++++++++ 2 files changed, 45 insertions(+) create mode 100644 .gitea/workflows/release.yml create mode 100644 Dockerfile diff --git a/.gitea/workflows/release.yml b/.gitea/workflows/release.yml new file mode 100644 index 0000000..5ff02b0 --- /dev/null +++ b/.gitea/workflows/release.yml @@ -0,0 +1,35 @@ +name: Publish Docker Image + +on: + push: + branches: + - main + +env: + REGISTRY_URL: git.tainton.uk + +jobs: + publish: + runs-on: ubuntu-latest + steps: + - name: Check out repository code + uses: actions/checkout@v4.1.7 + + - name: Set up Docker Buildx + uses: docker/setup-buildx-action@v3 + + - name: Log in to Gitea Package Registry + uses: docker/login-action@v3 + with: + registry: ${{ env.REGISTRY_URL }} + username: ${{ gitea.actor }} + password: ${{ secrets.GITEA_TOKEN }} + + - name: Build and push Docker image + id: push + uses: docker/build-push-action@v6 + with: + context: . + push: true + tags: | + ${{ env.REGISTRY_URL }}/${{ gitea.repository }}:latest diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..27e9397 --- /dev/null +++ b/Dockerfile @@ -0,0 +1,10 @@ +FROM gitea/runner-images:ubuntu-latest + +LABEL maintainer="Luke Tainton " + +ENV PIPX_BIN_DIR=/usr/local/bin + +RUN apt-get update && \ + apt-get install -y pipx && \ + apt-get clean && \ + pipx install poetry