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
This commit is contained in:
parent
7b7b169c87
commit
b3ca46fc51
3 changed files with 9 additions and 9 deletions
|
|
@ -20,7 +20,7 @@ jobs:
|
||||||
sandbox = false
|
sandbox = false
|
||||||
services:
|
services:
|
||||||
postgres:
|
postgres:
|
||||||
image: postgres:17-alpine
|
image: postgres:17.12-alpine
|
||||||
env:
|
env:
|
||||||
POSTGRES_USER: postgres
|
POSTGRES_USER: postgres
|
||||||
POSTGRES_HOST_AUTH_METHOD: trust
|
POSTGRES_HOST_AUTH_METHOD: trust
|
||||||
|
|
@ -32,10 +32,10 @@ jobs:
|
||||||
nix-env -iA nixpkgs.nodejs_22
|
nix-env -iA nixpkgs.nodejs_22
|
||||||
|
|
||||||
- name: Checkout
|
- name: Checkout
|
||||||
uses: actions/checkout@v7
|
uses: actions/checkout@v7.0.1
|
||||||
|
|
||||||
- name: Cache gems
|
- name: Cache gems
|
||||||
uses: actions/cache@v6
|
uses: actions/cache@v6.1.0
|
||||||
with:
|
with:
|
||||||
path: .gems
|
path: .gems
|
||||||
key: gems-${{ hashFiles('Gemfile.lock') }}
|
key: gems-${{ hashFiles('Gemfile.lock') }}
|
||||||
|
|
@ -58,7 +58,7 @@ jobs:
|
||||||
runs-on: arch-latest
|
runs-on: arch-latest
|
||||||
needs: test
|
needs: test
|
||||||
container:
|
container:
|
||||||
image: gcr.io/kaniko-project/executor:debug
|
image: gcr.io/kaniko-project/executor:v1.24.0-debug
|
||||||
outputs:
|
outputs:
|
||||||
image_tag: ${{ steps.build_image.outputs.image_tag }}
|
image_tag: ${{ steps.build_image.outputs.image_tag }}
|
||||||
steps:
|
steps:
|
||||||
|
|
@ -94,7 +94,7 @@ jobs:
|
||||||
pacman -Syu --noconfirm nodejs openssh rsync
|
pacman -Syu --noconfirm nodejs openssh rsync
|
||||||
|
|
||||||
- name: Checkout code
|
- name: Checkout code
|
||||||
uses: actions/checkout@v7
|
uses: actions/checkout@v7.0.1
|
||||||
|
|
||||||
- name: Deploy docker-compose.yml
|
- name: Deploy docker-compose.yml
|
||||||
uses: easingthemes/ssh-deploy@v6.0.3
|
uses: easingthemes/ssh-deploy@v6.0.3
|
||||||
|
|
|
||||||
|
|
@ -26,7 +26,7 @@ jobs:
|
||||||
# container.network must stay "" — with "host" the service network is
|
# container.network must stay "" — with "host" the service network is
|
||||||
# never created and services fail to start).
|
# never created and services fail to start).
|
||||||
postgres:
|
postgres:
|
||||||
image: postgres:17-alpine
|
image: postgres:17.12-alpine
|
||||||
env:
|
env:
|
||||||
POSTGRES_USER: postgres
|
POSTGRES_USER: postgres
|
||||||
POSTGRES_HOST_AUTH_METHOD: trust
|
POSTGRES_HOST_AUTH_METHOD: trust
|
||||||
|
|
@ -38,12 +38,12 @@ jobs:
|
||||||
nix-env -iA nixpkgs.nodejs_22
|
nix-env -iA nixpkgs.nodejs_22
|
||||||
|
|
||||||
- name: Checkout
|
- 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
|
# 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.
|
# in the workspace (.gems via the flake's BUNDLE_PATH), so cache those.
|
||||||
- name: Cache gems
|
- name: Cache gems
|
||||||
uses: actions/cache@v6
|
uses: actions/cache@v6.1.0
|
||||||
with:
|
with:
|
||||||
path: .gems
|
path: .gems
|
||||||
key: gems-${{ hashFiles('Gemfile.lock') }}
|
key: gems-${{ hashFiles('Gemfile.lock') }}
|
||||||
|
|
|
||||||
|
|
@ -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 \
|
RUN apt-get update && apt-get install -y --no-install-recommends \
|
||||||
build-essential \
|
build-essential \
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue