Commit a09d4367495fb8a1300aeea5fd6ee22f26745ec8

Edward Thomson 2021-08-23T15:27:42

Merge pull request #6000 from libgit2/ethomson/ci ci: tag new containers with the latest tag

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 \