update build to v3

This commit is contained in:
Attilio Greco 2022-12-16 14:55:35 +01:00
parent 2f8b18ce45
commit 1a0f1afb8b
No known key found for this signature in database
GPG Key ID: FC1D47921C8F19CC
2 changed files with 3 additions and 3 deletions

View File

@ -45,7 +45,7 @@ jobs:
string: ${{ github.repository_owner }} string: ${{ github.repository_owner }}
- name: Build and push - name: Build and push
uses: docker/build-push-action@v2 uses: docker/build-push-action@v3
with: with:
build-args: | build-args: |
PYTHON_VERSION=${{ matrix.python }} PYTHON_VERSION=${{ matrix.python }}
@ -56,7 +56,7 @@ jobs:
tags: ghcr.io/${{ steps.string.outputs.lowercase }}/web-base:${{ matrix.python }}-alpine${{ matrix.alpine }} tags: ghcr.io/${{ steps.string.outputs.lowercase }}/web-base:${{ matrix.python }}-alpine${{ matrix.alpine }}
- name: Build and push Poetry - name: Build and push Poetry
uses: docker/build-push-action@v2 uses: docker/build-push-action@v3
with: with:
build-args: | build-args: |
PYTHON_VERSION=${{ matrix.python }} PYTHON_VERSION=${{ matrix.python }}

View File

@ -8,6 +8,6 @@ ENV POETRY_HOME=/opt/poetry
ENV POETRY_VIRTUALENVS_IN_PROJECT=true ENV POETRY_VIRTUALENVS_IN_PROJECT=true
ENV PATH="$POETRY_HOME/bin:$PATH" ENV PATH="$POETRY_HOME/bin:$PATH"
COPY ./src/install_poetry.py /app/install_poetry.py COPY ./src/install_poetry.py /app/install_poetry.py
RUN python3 /app/install_poetry.py RUN pip install poetry
CMD ["/bin/bash"] CMD ["/bin/bash"]