From 662a5febde8444f771460b74f484b1174f829fcc Mon Sep 17 00:00:00 2001 From: Mark Steward Date: Fri, 26 Jul 2024 15:38:20 +0100 Subject: [PATCH] Push static image first --- .github/workflows/deploy.yml | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index ead8c7e8f..4fa861616 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -39,9 +39,11 @@ jobs: password: ${{ secrets.GITHUB_TOKEN }} - name: Build app image run: docker build -t ghcr.io/emfcamp/website:latest -f ./Dockerfile.prod . - - name: Publish app image - run: docker push ghcr.io/emfcamp/website:latest - name: Build static image + # This builds from ghcr.io/emfcamp/website:latest, which we haven't pushed yet but should be correct locally run: docker build -t ghcr.io/emfcamp/website-static:latest -f ./docker/static/Dockerfile ./docker/static/ - name: Publish static image + # Push static first so it hopefully gets pulled first run: docker push ghcr.io/emfcamp/website-static:latest + - name: Publish app image + run: docker push ghcr.io/emfcamp/website:latest