Browse Source

Separated out cache invalidation so I don't get dinged

agile-scaling
Stephen Starkey 2 years ago
parent
commit
37628cf659
  1. 3
      invalidate_cf
  2. 2
      publish
  3. 5
      sync_s3

3
invalidate_cf

@ -0,0 +1,3 @@
#!/usr/bin/env bash
aws cloudfront create-invalidation --distribution-id ${CF_DISTRO_ID:?missing var CF_DISTRO_ID} --paths "/*"

2
publish

@ -1,4 +1,4 @@
#!/bin/bash
#!/usr/bin/env bash
rm -rf resoures/public/* &&
lein run &&

5
sync_s3

@ -1,4 +1,3 @@
#!/bin/bash
#!/usr/bin/env bash
aws s3 sync resources/public/ s3://www.calmabiding.me/ --delete &&
aws cloudfront create-invalidation --distribution-id ${CF_DISTRO_ID:?missing var CF_DISTRO_ID} --paths "/*"
aws s3 sync resources/public/ s3://www.calmabiding.me/ --delete
Loading…
Cancel
Save