Skip to content

Commit

Permalink
monorepo: clean old api binaries in gh action
Browse files Browse the repository at this point in the history
  • Loading branch information
jaredh159 committed Oct 18, 2024
1 parent 8acb28a commit ce2dc04
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -128,8 +128,9 @@ jobs:
envs: DESTDIR,FILENAME
script: |
ln -sf "./${FILENAME}" "${DESTDIR}/latest"
chmod +x "${DESTDIR}/${FILENAME}"
chmod +x "${DESTDIR}/latest"
chmod +x "${DESTDIR}/${FILENAME}" "${DESTDIR}/latest"
cd ~/builds/production && ls -r1 api_* | grep -v $(basename $(readlink -f current)) | tail -n +11 | xargs rm
cd ~/builds/staging && ls -r api_* | tail -n +6 | xargs rm
pm2 restart staging
linux-api-test:
Expand Down

0 comments on commit ce2dc04

Please sign in to comment.