Skip to content

Commit

Permalink
purge the CDN after deployment
Browse files Browse the repository at this point in the history
  • Loading branch information
evgeni authored and ekohl committed Nov 28, 2024
1 parent 4a0b9c2 commit 491b285
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions theforeman.org/pipelines/deploy/website.groovy
Original file line number Diff line number Diff line change
Expand Up @@ -32,9 +32,7 @@ pipeline {
sh "/usr/bin/rsync --log-file '${rsync_log}' --log-file-format 'CHANGED %f' --archive --checksum --verbose --one-file-system --compress --stats --delete-after ./_site/ ${target_path}"
}

sh "cat '${rsync_log}'"
// this should become something like this later:
// sh "awk '/ CHANGED /{print $5}' '${rsync_log}' | xargs --no-run-if-empty fastly-purge 'https://theforeman.org/'"
sh "awk '/ CHANGED /{print \$5}' '${rsync_log}' | sed 's#_site/##' | xargs --no-run-if-empty fastly-purge 'https://theforeman.org/'"
sh "rm '${rsync_log}'"
}
}
Expand Down

0 comments on commit 491b285

Please sign in to comment.