Skip to content

Commit

Permalink
Push static image first
Browse files Browse the repository at this point in the history
  • Loading branch information
marksteward committed Jul 26, 2024
1 parent d6cf4b7 commit 662a5fe
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit 662a5fe

Please sign in to comment.