From a3184628a3cefdde1f3e135613f0f55f7b0f8be9 Mon Sep 17 00:00:00 2001 From: Sergei Poljanski Date: Fri, 13 Nov 2026 02:46:53 +0400 Subject: [PATCH] Pin exact versions of images and actions Floating tags (17-alpine, 3.4-slim, nginx:alpine, :latest, :debug, @v7) change under a deploy without anyone deciding it: the storage deploy moved Postgres to 17.12 on its own because of postgres:17-alpine. Pin every image and action to its exact current version, so each change arrives as a reviewed Renovate PR and a rollback is a revert. Assisted-by: Claude:opus-5-5 --- .forgejo/workflows/deploy.yaml | 10 +++++----- .forgejo/workflows/test.yaml | 6 +++--- Dockerfile | 2 +- 3 files changed, 9 insertions(+), 9 deletions(-) diff --git a/.forgejo/workflows/deploy.yaml b/.forgejo/workflows/deploy.yaml index 6ba8b2e..244b092 100644 --- a/.forgejo/workflows/deploy.yaml +++ b/.forgejo/workflows/deploy.yaml @@ -20,7 +20,7 @@ jobs: sandbox = false services: postgres: - image: postgres:17-alpine + image: postgres:17.12-alpine env: POSTGRES_USER: postgres POSTGRES_HOST_AUTH_METHOD: trust @@ -32,10 +32,10 @@ jobs: nix-env -iA nixpkgs.nodejs_22 - name: Checkout - uses: actions/checkout@v7 + uses: actions/checkout@v7.0.1 - name: Cache gems - uses: actions/cache@v6 + uses: actions/cache@v6.1.0 with: path: .gems key: gems-${{ hashFiles('Gemfile.lock') }} @@ -58,7 +58,7 @@ jobs: runs-on: arch-latest needs: test container: - image: gcr.io/kaniko-project/executor:debug + image: gcr.io/kaniko-project/executor:v1.24.0-debug outputs: image_tag: ${{ steps.build_image.outputs.image_tag }} steps: @@ -94,7 +94,7 @@ jobs: pacman -Syu --noconfirm nodejs openssh rsync - name: Checkout code - uses: actions/checkout@v7 + uses: actions/checkout@v7.0.1 - name: Deploy docker-compose.yml uses: easingthemes/ssh-deploy@v6.0.3 diff --git a/.forgejo/workflows/test.yaml b/.forgejo/workflows/test.yaml index 0310628..4bbd08b 100644 --- a/.forgejo/workflows/test.yaml +++ b/.forgejo/workflows/test.yaml @@ -26,7 +26,7 @@ jobs: # container.network must stay "" — with "host" the service network is # never created and services fail to start). postgres: - image: postgres:17-alpine + image: postgres:17.12-alpine env: POSTGRES_USER: postgres POSTGRES_HOST_AUTH_METHOD: trust @@ -38,12 +38,12 @@ jobs: nix-env -iA nixpkgs.nodejs_22 - name: Checkout - uses: actions/checkout@v7 + uses: actions/checkout@v7.0.1 # The nix closure persists in the runner's nix-store volume; gems live # in the workspace (.gems via the flake's BUNDLE_PATH), so cache those. - name: Cache gems - uses: actions/cache@v6 + uses: actions/cache@v6.1.0 with: path: .gems key: gems-${{ hashFiles('Gemfile.lock') }} diff --git a/Dockerfile b/Dockerfile index 69bfe4c..3739624 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,4 +1,4 @@ -FROM ruby:3.4-slim-bookworm +FROM ruby:3.4.12-slim-bookworm RUN apt-get update && apt-get install -y --no-install-recommends \ build-essential \