@@ -3,12 +3,7 @@ name: Update base image
33on :
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
138permissions :
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')" \
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 \
0 commit comments