Skip to content

Commit

Permalink
Merge pull request #7 from withlogicco/poetry-1.1.14
Browse files Browse the repository at this point in the history
Bump Poetry to `1.1.14`
  • Loading branch information
parisk authored Jul 28, 2022
2 parents 59797b1 + 6182447 commit a8c218d
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 17 deletions.
18 changes: 9 additions & 9 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ on:
types: [published]

env:
POETRY_VERSION: 1.1.13
POETRY_VERSION: 1.1.14
GHCR_IMAGE_REPOSITORY: ghcr.io/${{ github.repository_owner }}/poetry

jobs:
Expand All @@ -28,18 +28,18 @@ jobs:
- variant: buster
is_default_variant: true
steps:
- uses: actions/checkout@v2
- uses: docker/setup-qemu-action@v1
- uses: actions/checkout@v3
- uses: docker/setup-qemu-action@v2
with:
platforms: arm64,arm
- uses: docker/setup-buildx-action@v1
- uses: docker/login-action@v1
- uses: docker/setup-buildx-action@v2
- uses: docker/login-action@v2
with:
registry: ghcr.io
username: ${{ github.repository_owner }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: "Python + Variant: ${{ env.POETRY_VERSION }}-python-${{ matrix.python }}-${{ matrix.variant }}"
uses: docker/build-push-action@v2
uses: docker/build-push-action@v3.1.0
with:
push: true
tags: ${{ env.GHCR_IMAGE_REPOSITORY }}:${{ env.POETRY_VERSION }}-python-${{ matrix.python }}-${{ matrix.variant }}
Expand All @@ -51,7 +51,7 @@ jobs:
PYTHON_VERSION=${{ matrix.python }}
VARIANT=${{ matrix.variant }}
- name: "Python + Default Variant: ${{ env.POETRY_VERSION }}-python-${{ matrix.python }}"
uses: docker/build-push-action@v2
uses: docker/build-push-action@v3.1.0
if: matrix.is_default_variant
with:
push: true
Expand All @@ -62,7 +62,7 @@ jobs:
PYTHON_VERSION=${{ matrix.python }}
VARIANT=${{ matrix.variant }}
- name: "Default Python + Variant: ${{ env.POETRY_VERSION }}-${{ matrix.variant }}"
uses: docker/build-push-action@v2
uses: docker/build-push-action@v3.1.0
if: matrix.is_default_python
with:
push: true
Expand All @@ -73,7 +73,7 @@ jobs:
PYTHON_VERSION=${{ matrix.python }}
VARIANT=${{ matrix.variant }}
- name: "Default Python + Default Variant: ${{ env.POETRY_VERSION }}"
uses: docker/build-push-action@v2
uses: docker/build-push-action@v3.1.0
if: matrix.is_default_python && matrix.is_default_variant
with:
push: true
Expand Down
4 changes: 2 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ ARG VARIANT=buster
FROM python:${PYTHON_VERSION}-alpine as installation-base

WORKDIR /etc
ARG POETRY_VERSION=1.1.13
ARG POETRY_VERSION=1.1.14
RUN wget https://raw.githubusercontent.com/python-poetry/poetry/${POETRY_VERSION}/get-poetry.py
ARG POETRY_HOME=/usr/local/poetry
ENV POETRY_HOME=${POETRY_HOME}
Expand All @@ -15,7 +15,7 @@ FROM python:${PYTHON_VERSION}-${VARIANT}

ENV PYTHONUNBUFFERED=1

ARG PIP_VERSION=22.0.4
ARG PIP_VERSION=22.1.1
RUN pip install --upgrade pip==${PIP_VERSION}

ARG POETRY_HOME=/usr/local/poetry
Expand Down
12 changes: 6 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

Docker Poetry is a Docker image for Python projects with dependencies managed by Poetry.

![Poetry](https://img.shields.io/badge/Poetry-1.1.13-purple) ![Python](https://img.shields.io/badge/Python-3.10%20(default)%20%7C%203.9%20%7C%203.8%20%7C%203.7-blue) ![Variants](https://img.shields.io/badge/Variants-Buster%20(default)%20%7C%20Slim%20%7C%20Alpine-orange
![Poetry](https://img.shields.io/badge/Poetry-1.1.14-purple) ![Python](https://img.shields.io/badge/Python-3.10%20(default)%20%7C%203.9%20%7C%203.8%20%7C%203.7-blue) ![Variants](https://img.shields.io/badge/Variants-Buster%20(default)%20%7C%20Slim%20%7C%20Alpine-orange
)

## Why
Expand All @@ -25,17 +25,17 @@ This will use the default Python version (latest) and image variant (Buster). Yo

### Examples

- Poetry 1.1.13: `ghcr.io/withlogicco/poetry:1.1.13`
- Poetry 1.1.13 on Python 3.10: `ghcr.io/withlogicco/poetry:1.1.13-python-3.10`
- Poetry 1.1.13 on Buster: `ghcr.io/withlogicco/poetry:1.1.13-buster`
- Poetry 1.1.13 on Python 3.10 and Buster: `ghcr.io/withlogicco/poetry:1.1.13-python-3.10-buster`
- Poetry 1.1.14: `ghcr.io/withlogicco/poetry:1.1.14`
- Poetry 1.1.14 on Python 3.10: `ghcr.io/withlogicco/poetry:1.1.14-python-3.10`
- Poetry 1.1.14 on Buster: `ghcr.io/withlogicco/poetry:1.1.14-buster`
- Poetry 1.1.14 on Python 3.10 and Buster: `ghcr.io/withlogicco/poetry:1.1.14-python-3.10-buster`

## Usage

First, pick the image tag you wish to use. Then, copy your `pyproject.toml` and `poetry.lock` files in the working directory (`/usr/src/app`), for optimal caching and run `poetry install`. Example:

```dockerfile
FROM ghcr.io/withlogicco/poetry:1.1.13
FROM ghcr.io/withlogicco/poetry:1.1.14

COPY pyproject.toml poetry.lock ./
RUN poetry install
Expand Down

0 comments on commit a8c218d

Please sign in to comment.