summary refs log tree commit diff
path: root/.circleci
diff options
context:
space:
mode:
authorRichard van der Hoff <1389908+richvdh@users.noreply.github.com>2020-12-10 17:00:29 +0000
committerGitHub <noreply@github.com>2020-12-10 17:00:29 +0000
commitdc016c66ae228fc6496de35928ea3096cba80267 (patch)
tree2e3a05c7c45a42899c2c150f6344697cd8d66336 /.circleci
parentFix deadlock on SIGHUP (#8918) (diff)
downloadsynapse-dc016c66ae228fc6496de35928ea3096cba80267.tar.xz
Don't publish `latest` docker image until all archs are built (#8909)
Diffstat (limited to '.circleci')
-rw-r--r--.circleci/config.yml7
1 files changed, 4 insertions, 3 deletions
diff --git a/.circleci/config.yml b/.circleci/config.yml
index 088da55735..375a7f7b04 100644
--- a/.circleci/config.yml
+++ b/.circleci/config.yml
@@ -7,6 +7,8 @@ jobs:
       - checkout
       - docker_prepare
       - run: docker login --username $DOCKER_HUB_USERNAME --password $DOCKER_HUB_PASSWORD
+      # for release builds, we want to get the amd64 image out asap, so first
+      # we do an amd64-only build, before following up with a multiarch build.
       - docker_build:
           tag: -t matrixdotorg/synapse:${CIRCLE_TAG}
           platforms: linux/amd64
@@ -21,9 +23,8 @@ jobs:
       - checkout
       - docker_prepare
       - run: docker login --username $DOCKER_HUB_USERNAME --password $DOCKER_HUB_PASSWORD
-      - docker_build:
-          tag: -t matrixdotorg/synapse:latest
-          platforms: linux/amd64
+      # for `latest`, we don't want the arm images to disappear, so don't update the tag
+      # until all of the platforms are built.
       - docker_build:
           tag: -t matrixdotorg/synapse:latest
           platforms: linux/amd64,linux/arm/v7,linux/arm64