Compare commits
8 Commits
68b3b81273
...
v0.0.15
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
38a422e305 | ||
|
|
1e2cdf82e6 | ||
|
|
7c88b67418 | ||
|
|
06f135a005 | ||
|
|
8bf8e5448a | ||
|
|
564b5e9f3c | ||
|
|
ed31bcc0e3 | ||
|
|
bd17026643 |
@@ -178,7 +178,6 @@ steps:
|
|||||||
from_secret: woodpecker_token
|
from_secret: woodpecker_token
|
||||||
commands: |
|
commands: |
|
||||||
source $CI_WORKSPACE/version.env
|
source $CI_WORKSPACE/version.env
|
||||||
|
|
||||||
if [ "$version_type" != "none" ]; then
|
if [ "$version_type" != "none" ]; then
|
||||||
echo "🚀 Déclenchement du déploiement pour la version $NEW_VERSION"
|
echo "🚀 Déclenchement du déploiement pour la version $NEW_VERSION"
|
||||||
echo "🚀 $CI_REPO_OWNER"
|
echo "🚀 $CI_REPO_OWNER"
|
||||||
@@ -195,7 +194,6 @@ steps:
|
|||||||
"deploy_id": "'$CI_PIPELINE_NUMBER'",
|
"deploy_id": "'$CI_PIPELINE_NUMBER'",
|
||||||
"ref": "refs/tags/v'$NEW_VERSION'"
|
"ref": "refs/tags/v'$NEW_VERSION'"
|
||||||
}'
|
}'
|
||||||
|
|
||||||
echo "✅ Événement deployment déclenché"
|
echo "✅ Événement deployment déclenché"
|
||||||
else
|
else
|
||||||
echo "⏭️ Pas de déclenchement (version_type=none)"
|
echo "⏭️ Pas de déclenchement (version_type=none)"
|
||||||
@@ -205,15 +203,17 @@ steps:
|
|||||||
|
|
||||||
- name: trigger-deployment2
|
- name: trigger-deployment2
|
||||||
image: woodpeckerci/plugin-trigger
|
image: woodpeckerci/plugin-trigger
|
||||||
|
pipeline:
|
||||||
|
|
||||||
settings:
|
settings:
|
||||||
# L'URL de votre serveur Woodpecker
|
# L'URL de votre serveur Woodpecker
|
||||||
server: https://woodpecker.cicd.exygen.fr
|
server: https://woodpecker.cicd.exygen.fr
|
||||||
# Le token d'API (doit être stocké comme secret)
|
# Le token d'API (doit être stocké comme secret)
|
||||||
|
branche: main
|
||||||
token:
|
token:
|
||||||
from_secret: woodpecker_token
|
from_secret: woodpecker_token
|
||||||
# Le dépôt cible, avec la branche optionnelle (format propriétaire/répertoire[@branche])
|
# Le dépôt cible, avec la branche optionnelle (format propriétaire/répertoire[@branche])
|
||||||
repositories:
|
repo: domaine-passignat/gestion
|
||||||
- domaine-passignat/gestion@main
|
|
||||||
# Paramètre CLÉ : active l'événement 'deployment' et spécifie l'environnement cible
|
# Paramètre CLÉ : active l'événement 'deployment' et spécifie l'environnement cible
|
||||||
deploy: production
|
deploy: production
|
||||||
# (Optionnel) Transmettre des variables au pipeline déclenché (ex: une version)
|
# (Optionnel) Transmettre des variables au pipeline déclenché (ex: une version)
|
||||||
|
|||||||
1
database/src/sql/version-0.0.13-0.0.14.sql
Normal file
1
database/src/sql/version-0.0.13-0.0.14.sql
Normal file
@@ -0,0 +1 @@
|
|||||||
|
-- none
|
||||||
1
database/src/sql/version-0.0.14-0.0.15.sql
Normal file
1
database/src/sql/version-0.0.14-0.0.15.sql
Normal file
@@ -0,0 +1 @@
|
|||||||
|
-- none
|
||||||
@@ -1,7 +1,7 @@
|
|||||||
{
|
{
|
||||||
"name": "cicd",
|
"name": "cicd",
|
||||||
"private": true,
|
"private": true,
|
||||||
"version": "0.0.13",
|
"version": "0.0.15",
|
||||||
"description": "Node.js Rest Apis with Express, Sequelize & PostgreSQL",
|
"description": "Node.js Rest Apis with Express, Sequelize & PostgreSQL",
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"update:patch": "node scripts/update-version.js -patch",
|
"update:patch": "node scripts/update-version.js -patch",
|
||||||
|
|||||||
Reference in New Issue
Block a user