Skip to content

Commit 1642127

Browse files
committed
Use docker "immutable identifier" instead of tag
Signed-off-by: Thomas Clarke <[email protected]>
1 parent ca0a90b commit 1642127

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

.circleci/config.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ commands:
4848
jobs:
4949
prep_env:
5050
docker:
51-
- image: tlaurion/heads-dev-env:v0.2.5
51+
- image: tlaurion/heads-dev-env@sha256:50a9110cdfc6a74a383169d7c624139c3b3e05567b87203498118a8a33dd79f1 # v0.2.5
5252
resource_class: large
5353
working_directory: ~/heads
5454
steps:
@@ -122,7 +122,7 @@ jobs:
122122

123123
build_and_persist:
124124
docker:
125-
- image: tlaurion/heads-dev-env:v0.2.5
125+
- image: tlaurion/heads-dev-env@sha256:50a9110cdfc6a74a383169d7c624139c3b3e05567b87203498118a8a33dd79f1 # v0.2.5
126126
resource_class: large
127127
working_directory: ~/heads
128128
parameters:
@@ -150,7 +150,7 @@ jobs:
150150

151151
build:
152152
docker:
153-
- image: tlaurion/heads-dev-env:v0.2.5
153+
- image: tlaurion/heads-dev-env@sha256:50a9110cdfc6a74a383169d7c624139c3b3e05567b87203498118a8a33dd79f1 # v0.2.5
154154
resource_class: large
155155
working_directory: ~/heads
156156
parameters:
@@ -171,7 +171,7 @@ jobs:
171171

172172
save_cache:
173173
docker:
174-
- image: tlaurion/heads-dev-env:v0.2.5
174+
- image: tlaurion/heads-dev-env@sha256:50a9110cdfc6a74a383169d7c624139c3b3e05567b87203498118a8a33dd79f1 # v0.2.5
175175
resource_class: large
176176
working_directory: ~/heads
177177
steps:

docker_repro.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
#!/bin/bash
22

33
# Extract the Docker image version from the CircleCI config file
4-
DOCKER_IMAGE=$(grep -oP '^\s*-?\s*image:\s*\K(tlaurion/heads-dev-env:[^\s]+)' .circleci/config.yml | head -n 1)
4+
DOCKER_IMAGE=$(grep -oP '^\s*-?\s*image:\s*\K(tlaurion/heads-dev-env@[^\s]+)' .circleci/config.yml | head -n 1)
55

66
# Check if the Docker image was found
77
if [ -z "$DOCKER_IMAGE" ]; then

0 commit comments

Comments
 (0)