Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
27 changes: 27 additions & 0 deletions .github/workflows/publish-docker.yml
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
name: Publish Docker image
on:
push:
tags:
- "create-awesome-python-app@*"
workflow_dispatch:
inputs:
version:
description: "Package version"
required: true
jobs:
docker:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- 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@v6
with:
context: .
push: true
tags: |
${{ secrets.DOCKERHUB_USERNAME }}/create-awesome-python-app:latest
5 changes: 5 additions & 0 deletions Dockerfile
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
FROM ghcr.io/astral-sh/uv:python3.12-bookworm-slim
WORKDIR /app
COPY . .
RUN uv sync --frozen --no-dev
ENTRYPOINT ["uv", "run", "create-awesome-python-app"]
Loading