diff --git a/README.md b/README.md index ec04e98..62a125e 100644 --- a/README.md +++ b/README.md @@ -34,6 +34,7 @@ make migrate # run DB migrations - View which container images are running: `docker ps --format 'table {{.Names}}\t{{.Image}}'` - Flush all redis cache: `docker compose exec -T mvp-redis sh -lc "redis-cli FLUSHALL"` - Flush all backup data on staging before restoring: `docker compose exec mvp-postgres psql -U postgres -d motovaultpro -c "TRUNCATE TABLE backup_history, backup_schedules, backup_settings RESTART IDENTITY CASCADE;"` +- Create new admin users on brand new deployment `docker exec -it motovaultpro-backend-1 node dist/_system/cli/create-admin.js` ## Development Workflow diff --git a/ansible/deploy-production-runner.yml b/ansible/deploy-production-runner.yml index 837ca66..d59daf6 100644 --- a/ansible/deploy-production-runner.yml +++ b/ansible/deploy-production-runner.yml @@ -105,10 +105,20 @@ # ============================================ # act_runner Installation # ============================================ + - name: Check current act_runner version + command: act_runner --version + register: current_runner_version + changed_when: false + failed_when: false + - name: Download act_runner binary - get_url: - url: "https://gitea.com/gitea/act_runner/releases/download/v{{ act_runner_version }}/act_runner-{{ act_runner_version }}-linux-amd64" - dest: /usr/local/bin/act_runner + shell: curl -fsSL -o /usr/local/bin/act_runner "https://gitea.com/gitea/act_runner/releases/download/v{{ act_runner_version }}/act_runner-{{ act_runner_version }}-linux-amd64" + when: current_runner_version.rc != 0 or act_runner_version not in (current_runner_version.stdout | default('')) + notify: Restart act_runner + + - name: Set act_runner binary permissions + file: + path: /usr/local/bin/act_runner mode: '0755' - name: Verify act_runner installation diff --git a/ansible/deploy-staging-runner.yml b/ansible/deploy-staging-runner.yml index 0d98548..c6fe83e 100644 --- a/ansible/deploy-staging-runner.yml +++ b/ansible/deploy-staging-runner.yml @@ -136,10 +136,20 @@ # ============================================ # act_runner Installation # ============================================ + - name: Check current act_runner version + command: act_runner --version + register: current_runner_version + changed_when: false + failed_when: false + - name: Download act_runner binary - get_url: - url: "https://gitea.com/gitea/act_runner/releases/download/v{{ act_runner_version }}/act_runner-{{ act_runner_version }}-linux-amd64" - dest: /usr/local/bin/act_runner + shell: curl -fsSL -o /usr/local/bin/act_runner "https://gitea.com/gitea/act_runner/releases/download/v{{ act_runner_version }}/act_runner-{{ act_runner_version }}-linux-amd64" + when: current_runner_version.rc != 0 or act_runner_version not in (current_runner_version.stdout | default('')) + notify: Restart act_runner + + - name: Set act_runner binary permissions + file: + path: /usr/local/bin/act_runner mode: '0755' - name: Verify act_runner installation diff --git a/motovaultpro_backup_2026-03-22T15-00-02.tar.gz b/motovaultpro_backup_2026-03-22T15-00-02.tar.gz new file mode 100644 index 0000000..6e25438 Binary files /dev/null and b/motovaultpro_backup_2026-03-22T15-00-02.tar.gz differ