-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: creation des releases dans sentry (#3481)
- Loading branch information
Showing
13 changed files
with
853 additions
and
733 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
#!/bin/bash | ||
set -euo pipefail | ||
|
||
export VERSION="${1:?"Veuillez préciser la version"}" | ||
shift 1 | ||
|
||
export ENVIRONMENT="${1:?"Veuillez préciser l'environement"}"; | ||
shift; | ||
|
||
if [[ -z "${ANSIBLE_VAULT_PASSWORD_FILE:-}" ]]; then | ||
ansible_extra_opts+=("--vault-password-file" "${SCRIPT_DIR}/get-vault-password-client.sh") | ||
else | ||
echo "Récupération de la passphrase depuis l'environnement variable ANSIBLE_VAULT_PASSWORD_FILE" | ||
fi | ||
|
||
readonly VAULT_FILE="${ROOT_DIR}/.infra/vault/vault.yml" | ||
|
||
SENTRY_DSN=$(ansible-vault view "${ansible_extra_opts[@]}" "$VAULT_FILE" | yq '.vault.SERVER_SENTRY_DSN') | ||
SENTRY_AUTH_TOKEN=$(ansible-vault view "${ansible_extra_opts[@]}" "$VAULT_FILE" | yq '.vault.SENTRY_AUTH_TOKEN') | ||
|
||
docker run \ | ||
--platform=linux/amd64 \ | ||
--rm \ | ||
-it \ | ||
--entrypoint /bin/sh \ | ||
-e SENTRY_AUTH_TOKEN="${SENTRY_AUTH_TOKEN}" \ | ||
-e SENTRY_DSN="${SENTRY_DSN}" \ | ||
ghcr.io/mission-apprentissage/mna_tdb_server:${VERSION} \ | ||
/app/server/sentry-deploy-server.sh "${ENVIRONMENT}" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
#!/bin/bash | ||
set -euo pipefail | ||
|
||
export VERSION="${1:?"Veuillez préciser la version"}" | ||
shift 1 | ||
|
||
export COMMIT_ID="${1:?"Veuillez préciser le commit ID"}" | ||
shift 1 | ||
|
||
if [[ -z "${ANSIBLE_VAULT_PASSWORD_FILE:-}" ]]; then | ||
ansible_extra_opts+=("--vault-password-file" "${SCRIPT_DIR}/get-vault-password-client.sh") | ||
else | ||
echo "Récupération de la passphrase depuis l'environnement variable ANSIBLE_VAULT_PASSWORD_FILE" | ||
fi | ||
|
||
readonly VAULT_FILE="${ROOT_DIR}/.infra/vault/vault.yml" | ||
|
||
SENTRY_DSN=$(ansible-vault view "${ansible_extra_opts[@]}" "$VAULT_FILE" | yq '.vault.SERVER_SENTRY_DSN') | ||
SENTRY_AUTH_TOKEN=$(ansible-vault view "${ansible_extra_opts[@]}" "$VAULT_FILE" | yq '.vault.SENTRY_AUTH_TOKEN') | ||
|
||
docker run \ | ||
--platform=linux/amd64 \ | ||
--rm \ | ||
-it \ | ||
--entrypoint /bin/sh \ | ||
-e SENTRY_AUTH_TOKEN="${SENTRY_AUTH_TOKEN}" \ | ||
-e SENTRY_DSN="${SENTRY_DSN}" \ | ||
ghcr.io/mission-apprentissage/mna_tdb_server:${VERSION} \ | ||
/app/server/sentry-release-server.sh "mission-apprentissage/flux-retour-cfas" "${COMMIT_ID}" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -25,7 +25,6 @@ | |
|
||
.git/ | ||
.infra | ||
!.infra/sentry/release-server.sh | ||
**/.local | ||
**/dist | ||
**/coverage | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.