Browse Source

Separated out cache invalidation so I don't get dinged

Stephen Starkey 1 year ago
parent
commit
37628cf659
3 changed files with 6 additions and 4 deletions
  1. 3
    0
      invalidate_cf
  2. 1
    1
      publish
  3. 2
    3
      sync_s3

+ 3
- 0
invalidate_cf View File

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

+ 1
- 1
publish View File

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

+ 2
- 3
sync_s3 View File

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