Skip to content

Commit

Permalink
finish up the deploy script
Browse files Browse the repository at this point in the history
  • Loading branch information
Fleeym committed Feb 24, 2024
1 parent 0cffb08 commit 7c4d055
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 1 deletion.
3 changes: 2 additions & 1 deletion .github/workflows/deploy.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -43,4 +43,5 @@ jobs:
- name: Replace current deployment
run: |
ssh -i ~/.ssh/index_key -o StrictHostKeyChecking=no ${{ secrets.INDEX_USER }}@${{ secrets.INDEX_SERVER }} "docker stop index && docker rm index && cd ${{ secrets.INDEX_DIR }} && ./run.sh"
ssh -i ~/.ssh/index_key -o StrictHostKeyChecking=no ${{ secrets.INDEX_USER }}@${{ secrets.INDEX_SERVER }} "docker stop index && docker rm index && cd ${{ secrets.INDEX_DIR }} && \
docker run --name=index --env-file=.env --restart=unless-stopped --network=index-net -p 3000:3000 -dit geode-index:${{ env.RELEASE_VERSION }}"
4 changes: 4 additions & 0 deletions migrations/20240224135649_fix_mod_version_cached.down.sql
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
-- Add down migration script here

alter table mod_downloads add column if not exists last_download_cache_refresh timestamptz;
alter table mod_versions drop column if exists last_download_cache_refresh timestamptz;
4 changes: 4 additions & 0 deletions migrations/20240224135649_fix_mod_version_cached.up.sql
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
-- Add up migration script here

alter table mod_downloads drop column if exists last_download_cache_refresh timestamptz;
alter table mod_versions add column if not exists last_download_cache_refresh timestamptz;

0 comments on commit 7c4d055

Please sign in to comment.