Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
version: 2
updates:
- package-ecosystem: "docker"
directory: "/"
schedule:
interval: "weekly"
32 changes: 0 additions & 32 deletions .github/workflows/update-ubuntu-sha.yaml

This file was deleted.

14 changes: 10 additions & 4 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,10 +1,16 @@
# syntax=docker/dockerfile:1.10
# enable docker linting
# check=error=true
ARG UBUNTU_VERSION=ubuntu:20.04
# we are parameterizing the base image, so we can't be explicit like DL3006 wants us to be
# hadolint ignore=DL3006
FROM $UBUNTU_VERSION as base-docker

# this must come before FROM lines
ARG UBUNTU_VERSION=ubuntu-20.04

# Include each version with sha so that dependabot can update them
FROM ubuntu:20.04@sha256:8feb4d8ca5354def3d8fce243717141ce31e2c428701f6682bd2fafe15388214 AS ubuntu-20.04
FROM ubuntu:22.04@sha256:c7eb020043d8fc2ae0793fb35a37bff1cf33f156d4d4b12ccc7f3ef8706c38b1 AS ubuntu-22.04
FROM ubuntu:24.04@sha256:cd1dba651b3080c3686ecf4e3c4220f026b521fb76978881737d24f200828b2b AS ubuntu-24.04

FROM $UBUNTU_VERSION AS base-docker

# default env vars
ENV container=docker DEBIAN_FRONTEND=noninteractive LANG=C.UTF-8 LC_ALL=C.UTF-8
Expand Down
12 changes: 1 addition & 11 deletions Justfile
Original file line number Diff line number Diff line change
Expand Up @@ -51,17 +51,7 @@ test: build
docker run $RUN_ARGS --rm -v {{justfile_directory()}}:/tests -w /tests $ACTION_IMAGE_NAME:24.04 ./tests.sh
./check.sh

# Update the files tracking the SHAs of ubuntu docker image
update-docker-shas:
@just _update-sha "ubuntu:20.04"
@just _update-sha "ubuntu:22.04"

_update-sha os:
echo {{ os }}
docker image pull {{ os }}
docker inspect --format='{{{{index .RepoDigests 0}}' {{ os }} > {{ os }}.sha


# publish the images to ghcr.io
publish-images:
#!/bin/bash
set -euo pipefail
Expand Down
12 changes: 6 additions & 6 deletions docker-compose.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -20,44 +20,44 @@ services:
image: "base-docker:20.04"
build:
args:
- UBUNTU_VERSION=ubuntu:20.04
- UBUNTU_VERSION=ubuntu-20.04

base-docker-22.04:
extends: base-docker
image: "base-docker:22.04"
build:
args:
- UBUNTU_VERSION=ubuntu:22.04
- UBUNTU_VERSION=ubuntu-22.04

base-docker-24.04:
extends: base-docker
image: "base-docker:24.04"
build:
args:
- UBUNTU_VERSION=ubuntu:24.04
- UBUNTU_VERSION=ubuntu-24.04

base-action-20.04:
extends: base-docker
image: "base-action:20.04"
build:
args:
- UBUNTU_VERSION=ubuntu:20.04
- UBUNTU_VERSION=ubuntu-20.04
target: base-action

base-action-22.04:
extends: base-docker
image: "base-action:22.04"
build:
args:
- UBUNTU_VERSION=ubuntu:22.04
- UBUNTU_VERSION=ubuntu-22.04
target: base-action

base-action-24.04:
extends: base-docker
image: "base-action:24.04"
build:
args:
- UBUNTU_VERSION=ubuntu:24.04
- UBUNTU_VERSION=ubuntu-24.04
target: base-action

secrets:
Expand Down
1 change: 0 additions & 1 deletion ubuntu:20.04.sha

This file was deleted.

1 change: 0 additions & 1 deletion ubuntu:22.04.sha

This file was deleted.