diff --git a/.gitea/workflows/build-image.yaml b/.gitea/workflows/build-image.yaml index c6794c1..17d7793 100644 --- a/.gitea/workflows/build-image.yaml +++ b/.gitea/workflows/build-image.yaml @@ -16,20 +16,20 @@ jobs: runs-on: cth-ubuntu-latest steps: - name: Check out repository - uses: https://github.com/actions/checkout@v4 + uses: https://github.com/actions/checkout@11d5960a326750d5838078e36cf38b85af677262 # v4 - name: Set up Docker Buildx - uses: https://github.com/docker/setup-buildx-action@v3 + uses: https://github.com/docker/setup-buildx-action@8d2750c68a42422c14e847fe6c8ac0403b4cbd6f # v3 - name: Login to registry - uses: https://github.com/docker/login-action@v3 + uses: https://github.com/docker/login-action@c94ce9fb468520275223c153574b00df6fe4bcc9 # v3 with: username: ${{ secrets.DOCKERHUB_USERNAME }} password: ${{ secrets.DOCKERHUB_TOKEN }} registry: 'h3m6q87t.gra7.container-registry.ovh.net' - name: Build and push - uses: https://github.com/docker/build-push-action@v5 + uses: https://github.com/docker/build-push-action@ca052bb54ab0790a636c9b5f226502c73d547a25 # v5 with: context: ./pythonProject file: ./pythonProject/Dockerfile diff --git a/pythonProject/Dockerfile b/pythonProject/Dockerfile index 08a8f25..0392c79 100644 --- a/pythonProject/Dockerfile +++ b/pythonProject/Dockerfile @@ -1,5 +1,5 @@ # Set base Python image version -FROM python:3.10-alpine +FROM python:3.10-alpine@sha256:8ca9f9d0f4df2af674092e7e9d79ce7985e783cecfe070f8ea850801b6520bf7 # Set working directory WORKDIR /app