From c06afe631a00e056cbff2e0748737d5625fbb356 Mon Sep 17 00:00:00 2001 From: Claudio Ortolina Date: Tue, 7 Oct 2025 01:16:19 +0300 Subject: [PATCH] Migrate prod:deploy to standalone script --- .github/workflows/test_and_deploy.yml | 2 +- mise.toml | 6 ------ scripts/prod/deploy | 8 ++++++++ scripts/{ => prod}/deploy.hurl | 0 4 files changed, 9 insertions(+), 7 deletions(-) create mode 100755 scripts/prod/deploy rename scripts/{ => prod}/deploy.hurl (100%) diff --git a/.github/workflows/test_and_deploy.yml b/.github/workflows/test_and_deploy.yml index f2c49ffb..7abb3964 100644 --- a/.github/workflows/test_and_deploy.yml +++ b/.github/workflows/test_and_deploy.yml @@ -84,7 +84,7 @@ jobs: - uses: actions/checkout@v5 - uses: gacts/install-hurl@v1 - name: 🚀 Deploy to production - run: hurl --test --report-tap deploy.tap scripts/deploy.hurl + run: hurl --test --report-tap deploy.tap scripts/prod/deploy.hurl env: HURL_coolify_token: ${{ secrets.COOLIFY_TOKEN }} HURL_coolify_host: ${{ vars.COOLIFY_HOST }} diff --git a/mise.toml b/mise.toml index fe7795eb..218b59b2 100644 --- a/mise.toml +++ b/mise.toml @@ -37,12 +37,6 @@ run = 'rm data/music_library_prod*' description = 'Run HTTP tests against production' run = 'hurl --test test/prod.hurl' -[tasks."prod:deploy"] -description = 'Deploy on production and monitor' -run = """ -hurl --test --progress-bar scripts/deploy.hurl -""" - # DEVELOPMENT/TEST [tasks.test] diff --git a/scripts/prod/deploy b/scripts/prod/deploy new file mode 100755 index 00000000..d51213b2 --- /dev/null +++ b/scripts/prod/deploy @@ -0,0 +1,8 @@ +#!/usr/bin/env bash + +#MISE description="Deploy on production and monitor deployment" +#MISE confirm="Are you sure you want to deploy to production?" + +set -e + +hurl --test --progress-bar scripts/prod/deploy.hurl diff --git a/scripts/deploy.hurl b/scripts/prod/deploy.hurl similarity index 100% rename from scripts/deploy.hurl rename to scripts/prod/deploy.hurl