From f65e8225159492d2c768632a8b7657e36892302c Mon Sep 17 00:00:00 2001 From: Marco Pedone Date: Wed, 14 Jan 2026 15:24:02 +0100 Subject: [PATCH] chore: add deployment scripts for infoalloggi and marcopedone environments --- build_infoalloggi.sh | 13 +++++++++++++ build_marcopedone.sh | 13 +++++++++++++ deploy_infoalloggi.sh | 16 +++++++--------- deploy_marcopedone.sh | 16 +++++++--------- 4 files changed, 40 insertions(+), 18 deletions(-) create mode 100644 build_infoalloggi.sh create mode 100644 build_marcopedone.sh diff --git a/build_infoalloggi.sh b/build_infoalloggi.sh new file mode 100644 index 0000000..350dccb --- /dev/null +++ b/build_infoalloggi.sh @@ -0,0 +1,13 @@ +#!/usr/bin/env bash +set -euo pipefail + +# Preset for staging environment +export TAG="latest" +export IMAGE_REGISTRY="ghcr.io" +export OWNER="marcopedone" +export USERNAME="marcopedone" +export TOKEN="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" +export ENV_FILE=".env.infoalloggi" +export PREFIX="infoalloggi" + +./build_and_push_ghcr.sh diff --git a/build_marcopedone.sh b/build_marcopedone.sh new file mode 100644 index 0000000..ca74248 --- /dev/null +++ b/build_marcopedone.sh @@ -0,0 +1,13 @@ +#!/usr/bin/env bash +set -euo pipefail + +# Preset for staging environment +export TAG="latest" +export IMAGE_REGISTRY="ghcr.io" +export OWNER="marcopedone" +export USERNAME="marcopedone" +export TOKEN="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" +export ENV_FILE=".env.marcopedone" +export PREFIX="marcopedone" + +./build_and_push_ghcr.sh diff --git a/deploy_infoalloggi.sh b/deploy_infoalloggi.sh index 350dccb..cbe3683 100644 --- a/deploy_infoalloggi.sh +++ b/deploy_infoalloggi.sh @@ -1,13 +1,11 @@ #!/usr/bin/env bash set -euo pipefail -# Preset for staging environment -export TAG="latest" -export IMAGE_REGISTRY="ghcr.io" -export OWNER="marcopedone" -export USERNAME="marcopedone" -export TOKEN="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" -export ENV_FILE=".env.infoalloggi" -export PREFIX="infoalloggi" +curl -X 'POST' \ + 'https://dock.infoalloggi.it/api/compose.deploy' \ + -H 'accept: application/json' \ + -H 'Content-Type: application/json' \ + -H 'x-api-key: iIKlaMNilGkzCIgGNmQbzxUfvrwAwFEXcDBVxzVbSLPghbqLiagXcvwJRfLZxxao' \ + -d '{"composeId": "7apez8FViLShEjsFxlRNY"}' -./build_and_push_ghcr.sh +echo "Deployment triggered for infoalloggi.it" diff --git a/deploy_marcopedone.sh b/deploy_marcopedone.sh index ca74248..e166f34 100644 --- a/deploy_marcopedone.sh +++ b/deploy_marcopedone.sh @@ -1,13 +1,11 @@ #!/usr/bin/env bash set -euo pipefail -# Preset for staging environment -export TAG="latest" -export IMAGE_REGISTRY="ghcr.io" -export OWNER="marcopedone" -export USERNAME="marcopedone" -export TOKEN="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" -export ENV_FILE=".env.marcopedone" -export PREFIX="marcopedone" +curl -X 'POST' \ + 'https://dock.marcopedone.it/api/compose.deploy' \ + -H 'accept: application/json' \ + -H 'Content-Type: application/json' \ + -H 'x-api-key: gbiVIPaEQtkPywiAOIxiBtLrjKVuIqcnXXNMTzMXZoyTgJtgyLpHrlfBEqIcyEUM' \ + -d '{"composeId": "1Q1nPft6iaEDENfpYxq99"}' -./build_and_push_ghcr.sh +echo "Deployment triggered for marcopedone.it"