From 2069a97809e3f7a7cad8038fc41dfe6d4b1e83a0 Mon Sep 17 00:00:00 2001 From: Eero Ruohola Date: Thu, 15 Apr 2021 11:01:48 +0300 Subject: [PATCH] Unpin the Docker images to make layer caching work in CI The action currently hash a bug where it won't work at all with images pulled by digest: https://github.com/satackey/action-docker-layer-caching/issues/17 --- .github/docker-compose-ci.yml | 2 +- Dockerfile | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/docker-compose-ci.yml b/.github/docker-compose-ci.yml index d4bc7409..5bc3bb02 100644 --- a/.github/docker-compose-ci.yml +++ b/.github/docker-compose-ci.yml @@ -3,7 +3,7 @@ version: "3.7" services: db-ci: container_name: db-ci - image: postgres:12.4-alpine@sha256:4c493832e4865189e3cab86281a1706a074ea6796b525a7f191b3f48546c25a8 + image: postgres:12.4-alpine ports: - "5432:5432" environment: diff --git a/Dockerfile b/Dockerfile index f0e9d4dc..2fb6435a 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,4 +1,4 @@ -FROM python:3.9.4-slim-buster@sha256:de9482638c1354f5178efc90431de2a42e863a12bf3df41d7fa30d5c10fe543d as base +FROM python:3.9.4-slim-buster as base RUN apt-get update \ && apt-get install --no-install-recommends --assume-yes \