Merge pull request #6000 from libgit2/ethomson/ci ci: tag new containers with the latest tag
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74
diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml
index d1a0be7..b58f577 100644
--- a/.github/workflows/main.yml
+++ b/.github/workflows/main.yml
@@ -70,7 +70,9 @@ jobs:
BASE_ARG="--build-arg BASE=${{ matrix.container.base }}"
fi
docker build -t ${{ env.docker-registry-container-sha }} ${BASE_ARG} -f ${{ env.dockerfile }} .
+ docker tag ${{ env.docker-registry-container-sha }} ${{ env.docker-registry-container-latest }}
docker push ${{ env.docker-registry-container-sha }}
+ docker push ${{ env.docker-registry-container-latest }}
working-directory: ${{ env.docker-config-path }}
if: github.event_name != 'pull_request' && env.docker-container-exists != 'true'
diff --git a/ci/docker/bionic b/ci/docker/bionic
index fb6a34b..51af5c0 100644
--- a/ci/docker/bionic
+++ b/ci/docker/bionic
@@ -1,4 +1,5 @@
ARG BASE=ubuntu:bionic
+
FROM ${BASE} AS apt
RUN apt-get update && \
DEBIAN_FRONTEND=noninteractive apt-get install -y --no-install-recommends \
diff --git a/ci/docker/centos7 b/ci/docker/centos7
index 082b9e2..098edb2 100644
--- a/ci/docker/centos7
+++ b/ci/docker/centos7
@@ -1,4 +1,5 @@
ARG BASE=centos:7
+
FROM ${BASE} AS yum
RUN yum install -y \
which \
diff --git a/ci/docker/centos8 b/ci/docker/centos8
index e1fb768..f471984 100644
--- a/ci/docker/centos8
+++ b/ci/docker/centos8
@@ -1,4 +1,5 @@
ARG BASE=centos:8
+
FROM ${BASE} AS yum
RUN yum install -y \
which \
diff --git a/ci/docker/docurium b/ci/docker/docurium
index 7aa2475..1957bbb 100644
--- a/ci/docker/docurium
+++ b/ci/docker/docurium
@@ -1,4 +1,5 @@
ARG BASE=ubuntu:bionic
+
FROM ${BASE}
RUN apt update && apt install -y cmake pkg-config ruby ruby-dev llvm libclang-dev libssl-dev python-pygments
RUN gem install docurium
diff --git a/ci/docker/focal b/ci/docker/focal
index c0c57f6..1713876 100644
--- a/ci/docker/focal
+++ b/ci/docker/focal
@@ -1,4 +1,5 @@
ARG BASE=ubuntu:focal
+
FROM ${BASE} AS apt
RUN apt-get update && \
DEBIAN_FRONTEND=noninteractive apt-get install -y --no-install-recommends \
diff --git a/ci/docker/xenial b/ci/docker/xenial
index d2ba031..4c3810a 100644
--- a/ci/docker/xenial
+++ b/ci/docker/xenial
@@ -1,4 +1,5 @@
ARG BASE=ubuntu:xenial
+
FROM ${BASE} AS apt
RUN apt-get update && \
DEBIAN_FRONTEND=noninteractive apt-get install -y --no-install-recommends \