Initial
Some checks failed
Publish Docker Image / publish (push) Failing after 1m41s

This commit is contained in:
Luke Tainton 2025-01-02 15:17:00 +00:00
commit a25b1e5dd9
Signed by: luke
SSH Key Fingerprint: SHA256:D34npKT7UaiT/7gULqu7EPSLWWVAjTjXf4kKfJ/fQBo
2 changed files with 45 additions and 0 deletions

View File

@ -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

10
Dockerfile Normal file
View File

@ -0,0 +1,10 @@
FROM gitea/runner-images:ubuntu-latest
LABEL maintainer="Luke Tainton <luke@tainton.uk>"
ENV PIPX_BIN_DIR=/usr/local/bin
RUN apt-get update && \
apt-get install -y pipx && \
apt-get clean && \
pipx install poetry