Commit 3b603d319ee5f1f1436cd383505c47ec853c32c5

Edward Thomson 2021-08-23T15:00:39

ci: tag new containers with the latest tag

1
2
3
4
5
6
7
8
9
10
11
12
13
14
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'