Skip to content

Commit

Permalink
feat(repo): merge pull request #33 from Python-Code-Jam-2024-Royal-Re…
Browse files Browse the repository at this point in the history
…dshifts/hwittenborn/docker
  • Loading branch information
hwittenborn committed Jul 28, 2024
2 parents 7d05504 + 0540983 commit cf42485
Show file tree
Hide file tree
Showing 2 changed files with 34 additions and 0 deletions.
27 changes: 27 additions & 0 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
name: Publish Docker image
on:
push:
branches: [main]

jobs:
publish:
name: Publish
runs-on: ubuntu-latest
permissions:
contents: read
packages: write
steps:
- name: Checkout repository
uses: actions/checkout@v3
- name: Log in to registry
uses: docker/login-action@v2
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Build and push Docker image
uses: docker/build-push-action@v4
with:
context: .
push: true
tags: "ghcr.io/python-code-jam-2024-royal-redshifts/citadel"
7 changes: 7 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
FROM python:3.12
WORKDIR /app
COPY citadel /app/citadel/
COPY pyproject.toml poetry.lock README.md /app/
RUN pip install poetry
RUN poetry install
CMD ["poetry", "run", "python3", "citadel/main.py"]

0 comments on commit cf42485

Please sign in to comment.