From 3a41a5a8851a6b9c18c0cff8328a969c08fc15f5 Mon Sep 17 00:00:00 2001 From: ev-sc <4164774+ev-sc@users.noreply.github.com> Date: Tue, 28 May 2024 21:28:50 +0200 Subject: [PATCH] Upgrade python and github actions --- .github/workflows/deploy.yaml | 8 ++++---- Dockerfile | 6 +++--- 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/.github/workflows/deploy.yaml b/.github/workflows/deploy.yaml index 3b01e9e..590c326 100644 --- a/.github/workflows/deploy.yaml +++ b/.github/workflows/deploy.yaml @@ -14,16 +14,16 @@ jobs: contents: read steps: - - uses: actions/checkout@v2 + - uses: actions/checkout@v4 - name: Set up Docker Buildx - uses: docker/setup-buildx-action@v1 + uses: docker/setup-buildx-action@v3 - name: Login to GitHub Container Registry run: echo "${{ secrets.GITHUB_TOKEN }}" | docker login ghcr.io -u ${{ github.actor }} --password-stdin - name: Cache Docker layers - uses: actions/cache@v2 + uses: actions/cache@v4 with: path: /tmp/.buildx-cache key: ${{ runner.os }}-buildx-${{ github.sha }} @@ -31,7 +31,7 @@ jobs: ${{ runner.os }}-buildx- - name: Build and push - uses: docker/build-push-action@v2 + uses: docker/build-push-action@v5 with: context: . push: true diff --git a/Dockerfile b/Dockerfile index 4319a9b..e5cfa3e 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,5 +1,5 @@ -# Use an official Python runtime based on Debian 10 "buster" as a parent image. -FROM python:3.10-slim-buster +# Use an official Python runtime based on Debian 12 "bookworm" as a parent image. +FROM python:3.11-bookworm # Add user that will be used in the container. RUN useradd app @@ -21,7 +21,7 @@ RUN chown app:app /app # Install machine dependencies RUN apt-get update RUN apt-get install -y curl -RUN curl -sL https://deb.nodesource.com/setup_14.x | bash +RUN curl -sL https://deb.nodesource.com/setup_20.x | bash RUN apt-get install -y nodejs # For selenium headless browser testing