Skip to content

Commit

Permalink
CI: Add variable to Dockerfiles to force rebuilds
Browse files Browse the repository at this point in the history
This makes the Dockerfiles consistent with other repositories that do the same.
  • Loading branch information
timwoj committed Aug 23, 2023
1 parent 1b8fac9 commit 310d83e
Show file tree
Hide file tree
Showing 11 changed files with 44 additions and 0 deletions.
4 changes: 4 additions & 0 deletions ci/centos-7/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
FROM centos:7

# A version field to invalidate Cirrus's build cache when needed, as suggested in
# https://github.com/cirruslabs/cirrus-ci-docs/issues/544#issuecomment-566066822
ENV DOCKERFILE_VERSION 20230823

RUN yum -y install \
epel-release \
&& yum clean all && rm -rf /var/cache/yum
Expand Down
4 changes: 4 additions & 0 deletions ci/centos-stream-8/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
FROM quay.io/centos/centos:stream8

# A version field to invalidate Cirrus's build cache when needed, as suggested in
# https://github.com/cirruslabs/cirrus-ci-docs/issues/544#issuecomment-566066822
ENV DOCKERFILE_VERSION 20230823

RUN dnf -y install https://dl.fedoraproject.org/pub/epel/epel-release-latest-8.noarch.rpm
RUN dnf config-manager --set-enabled powertools

Expand Down
4 changes: 4 additions & 0 deletions ci/centos-stream-9/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
FROM quay.io/centos/centos:stream9

# A version field to invalidate Cirrus's build cache when needed, as suggested in
# https://github.com/cirruslabs/cirrus-ci-docs/issues/544#issuecomment-566066822
ENV DOCKERFILE_VERSION 20230823

# dnf config-manager isn't available at first, and
# we need it to install the CRB repo below.
RUN dnf -y install 'dnf-command(config-manager)'
Expand Down
4 changes: 4 additions & 0 deletions ci/debian-10/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
FROM debian:10

# A version field to invalidate Cirrus's build cache when needed, as suggested in
# https://github.com/cirruslabs/cirrus-ci-docs/issues/544#issuecomment-566066822
ENV DOCKERFILE_VERSION 20230823

ENV DEBIAN_FRONTEND="noninteractive" TZ="America/Los_Angeles"

ENV CMAKE_DIR "/opt/cmake"
Expand Down
4 changes: 4 additions & 0 deletions ci/debian-11/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
FROM debian:11

# A version field to invalidate Cirrus's build cache when needed, as suggested in
# https://github.com/cirruslabs/cirrus-ci-docs/issues/544#issuecomment-566066822
ENV DOCKERFILE_VERSION 20230823

ENV DEBIAN_FRONTEND="noninteractive" TZ="America/Los_Angeles"

RUN apt-get update && apt-get -y install \
Expand Down
4 changes: 4 additions & 0 deletions ci/fedora-37/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
FROM fedora:37

# A version field to invalidate Cirrus's build cache when needed, as suggested in
# https://github.com/cirruslabs/cirrus-ci-docs/issues/544#issuecomment-566066822
ENV DOCKERFILE_VERSION 20230823

RUN dnf -y install \
cmake \
diffutils \
Expand Down
4 changes: 4 additions & 0 deletions ci/fedora-38/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
FROM fedora:38

# A version field to invalidate Cirrus's build cache when needed, as suggested in
# https://github.com/cirruslabs/cirrus-ci-docs/issues/544#issuecomment-566066822
ENV DOCKERFILE_VERSION 20230823

RUN dnf -y install \
cmake \
diffutils \
Expand Down
4 changes: 4 additions & 0 deletions ci/opensuse-leap-15.4/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
FROM opensuse/leap:15.4

# A version field to invalidate Cirrus's build cache when needed, as suggested in
# https://github.com/cirruslabs/cirrus-ci-docs/issues/544#issuecomment-566066822
ENV DOCKERFILE_VERSION 20230823

RUN zypper refresh \
&& zypper in -y \
cmake \
Expand Down
4 changes: 4 additions & 0 deletions ci/opensuse-tumbleweed/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
FROM opensuse/tumbleweed

# A version field to invalidate Cirrus's build cache when needed, as suggested in
# https://github.com/cirruslabs/cirrus-ci-docs/issues/544#issuecomment-566066822
ENV DOCKERFILE_VERSION 20230823

RUN zypper refresh \
&& zypper in -y \
cmake \
Expand Down
4 changes: 4 additions & 0 deletions ci/ubuntu-20.04/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
FROM ubuntu:20.04

# A version field to invalidate Cirrus's build cache when needed, as suggested in
# https://github.com/cirruslabs/cirrus-ci-docs/issues/544#issuecomment-566066822
ENV DOCKERFILE_VERSION 20230823

ENV DEBIAN_FRONTEND="noninteractive" TZ="America/Los_Angeles"

RUN apt-get update && apt-get -y install \
Expand Down
4 changes: 4 additions & 0 deletions ci/ubuntu-22.04/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
FROM ubuntu:22.04

# A version field to invalidate Cirrus's build cache when needed, as suggested in
# https://github.com/cirruslabs/cirrus-ci-docs/issues/544#issuecomment-566066822
ENV DOCKERFILE_VERSION 20230823

ENV DEBIAN_FRONTEND="noninteractive" TZ="America/Los_Angeles"

RUN apt-get update && apt-get -y install \
Expand Down

0 comments on commit 310d83e

Please sign in to comment.