Skip to content

Commit 8cc07c0

Browse files
committed
Build a trixie base image
1 parent 9f9ebf0 commit 8cc07c0

2 files changed

Lines changed: 6 additions & 11 deletions

File tree

.github/workflows/base-image.yaml

Lines changed: 5 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -3,12 +3,7 @@ name: Update base image
33
on:
44
push:
55
branches:
6-
- main
7-
paths:
8-
- image/Dockerfile-base
9-
- .github/workflows/base-image.yaml
10-
schedule:
11-
- cron: 0 1 1 * *
6+
- trixie
127

138
permissions:
149
contents: read
@@ -41,13 +36,13 @@ jobs:
4136
- name: Base image
4237
id: build-and-push
4338
run: |
44-
BASE_DIGEST=$(docker buildx imagetools inspect "debian:bookworm-slim" --format '{{json .}}' | jq -r '.manifest.digest')
39+
BASE_DIGEST=$(docker buildx imagetools inspect "debian:trixie-slim" --format '{{json .}}' | jq -r '.manifest.digest')
4540
46-
sed -i "s|FROM debian:bookworm-slim|FROM debian:bookworm-slim@$BASE_DIGEST|" "image/Dockerfile-base"
41+
sed -i "s|FROM debian:trixie-slim|FROM debian:trixie-slim@$BASE_DIGEST|" "image/Dockerfile-base"
4742
4843
docker buildx build \
4944
--tag "danielflook/terraform-github-actions-base:$GITHUB_RUN_ID" \
50-
--tag danielflook/terraform-github-actions-base:latest \
45+
--tag danielflook/terraform-github-actions-base:trixie \
5146
--platform linux/amd64,linux/arm64 \
5247
--attest "type=provenance,mode=max,builder-id=$GITHUB_SERVER_URL/$GITHUB_REPOSITORY/actions/runs/$GITHUB_RUN_ID" \
5348
--annotation "index,manifest:org.opencontainers.image.created=$(date '+%Y-%m-%dT%H:%M:%S%z')" \
@@ -58,7 +53,7 @@ jobs:
5853
--annotation "index:org.opencontainers.image.ref.name=docker.io/danielflook/terraform-github-actions-base:$GITHUB_RUN_ID" \
5954
--annotation "index,manifest:builder-id=$GITHUB_SERVER_URL/$GITHUB_REPOSITORY/actions/runs/$GITHUB_RUN_ID" \
6055
--annotation "index,manifest:ref.tag=$GITHUB_RUN_ID" \
61-
--annotation "index,manifest:org.opencontainers.image.base.name=docker.io/debian:bookworm-slim" \
56+
--annotation "index,manifest:org.opencontainers.image.base.name=docker.io/debian:trixie-slim" \
6257
--annotation "index,manifest:base.manifest.digest=$BASE_DIGEST" \
6358
--file image/Dockerfile-base \
6459
--push \

image/Dockerfile-base

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ RUN git clone https://github.com/cloudposse/tfmask.git \
77
&& make \
88
&& make go/build
99

10-
FROM debian:bookworm-slim AS terraform-github-actions-base
10+
FROM debian:trixie-slim AS terraform-github-actions-base
1111

1212
# Terraform environment variables
1313
ENV CHECKPOINT_DISABLE=true

0 commit comments

Comments
 (0)