Compare commits
36 Commits
v0.0.10
...
0b1308e8f0
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
0b1308e8f0 | ||
|
|
838d7a42eb | ||
|
|
55b60e06da | ||
|
|
7ee90cba7c | ||
|
|
bbb29459f6 | ||
|
|
f564b38987 | ||
|
|
78cab3ffe2 | ||
|
|
f8dcae93c5 | ||
|
|
244f46418b | ||
|
|
c334f5ec09 | ||
|
|
9579676b0c | ||
|
|
10dd888152 | ||
|
|
d13bb14f34 | ||
|
|
350d3881f0 | ||
|
|
69b5c0017f | ||
|
|
08d234c8bc | ||
|
|
38a422e305 | ||
|
|
1e2cdf82e6 | ||
|
|
7c88b67418 | ||
|
|
06f135a005 | ||
|
|
8bf8e5448a | ||
|
|
564b5e9f3c | ||
|
|
ed31bcc0e3 | ||
|
|
bd17026643 | ||
|
|
68b3b81273 | ||
|
|
7eedd9549d | ||
|
|
e91c809d23 | ||
|
|
1de56405c4 | ||
|
|
0718c74966 | ||
|
|
e180afb2e3 | ||
|
|
fb305b72b3 | ||
|
|
a7bcffac98 | ||
|
|
62b401b5a1 | ||
|
|
11b254dff0 | ||
|
|
d5a0aa55d5 | ||
|
|
4b5add7403 |
@@ -1,8 +1,6 @@
|
||||
when:
|
||||
- event: push
|
||||
branch: [ main ]
|
||||
- event: pull_request
|
||||
- event: manual
|
||||
|
||||
variables:
|
||||
- &node_image node:18-alpine
|
||||
@@ -178,11 +176,12 @@ steps:
|
||||
from_secret: woodpecker_token
|
||||
commands: |
|
||||
source $CI_WORKSPACE/version.env
|
||||
|
||||
if [ "$version_type" != "none" ]; then
|
||||
echo "🚀 Déclenchement du déploiement pour la version $NEW_VERSION"
|
||||
echo "🚀 $CI_REPO_OWNER"
|
||||
echo "🚀 $CI_REPO_NAME"
|
||||
echo "http://woodpecker.cicd.exygen.fr/api/repos/$CI_REPO_OWNER/$CI_REPO_NAME/pipelines"
|
||||
curl -X POST \
|
||||
curl -v --fail -X POST \
|
||||
"http://woodpecker.cicd.exygen.fr/api/repos/$CI_REPO_OWNER/$CI_REPO_NAME/pipelines" \
|
||||
-H "Authorization: Bearer $WOODPECKER_TOKEN" \
|
||||
-H "Content-Type: application/json" \
|
||||
@@ -193,9 +192,35 @@ steps:
|
||||
"deploy_id": "'$CI_PIPELINE_NUMBER'",
|
||||
"ref": "refs/tags/v'$NEW_VERSION'"
|
||||
}'
|
||||
|
||||
echo "✅ Événement deployment déclenché"
|
||||
else
|
||||
echo "⏭️ Pas de déclenchement (version_type=none)"
|
||||
fi
|
||||
depends_on: [ commit_tag ]
|
||||
depends_on: [ commit_tag ]
|
||||
when:
|
||||
- event: never
|
||||
|
||||
|
||||
- name: trigger-deployment2
|
||||
image: woodpeckerci/plugin-trigger
|
||||
settings:
|
||||
# L'URL de votre serveur Woodpecker
|
||||
server: https://woodpecker.cicd.exygen.fr
|
||||
# Le token d'API (doit être stocké comme secret)
|
||||
branche: main
|
||||
deploy_pipeline: ${CI_PIPELINE_NUMBER}
|
||||
token:
|
||||
from_secret: woodpecker_token
|
||||
# Le dépôt cible, avec la branche optionnelle (format propriétaire/répertoire[@branche])
|
||||
repo: domaine-passignat/gestion
|
||||
# Paramètre CLÉ : active l'événement 'deployment' et spécifie l'environnement cible
|
||||
deploy_to: production
|
||||
# (Optionnel) Transmettre des variables au pipeline déclenché (ex: une version)
|
||||
params:
|
||||
- VERSION=${NEW_VERSION}
|
||||
# (Optionnel) Attendre la fin du pipeline déclenché
|
||||
wait: true
|
||||
# Déclenche cette étape uniquement après une publication réussie
|
||||
depends_on: [ commit_tag ]
|
||||
when:
|
||||
- event: never
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
# Documentation: https://woodpecker-ci.org/docs/usage/workflow-syntax
|
||||
|
||||
when:
|
||||
- event: deployment
|
||||
- event: [ deployment,manual ]
|
||||
|
||||
steps:
|
||||
- name: get-artifact
|
||||
|
||||
1
database/src/sql/version-0.0.10-0.0.11.sql
Normal file
1
database/src/sql/version-0.0.10-0.0.11.sql
Normal file
@@ -0,0 +1 @@
|
||||
-- none
|
||||
1
database/src/sql/version-0.0.11-0.0.12.sql
Normal file
1
database/src/sql/version-0.0.11-0.0.12.sql
Normal file
@@ -0,0 +1 @@
|
||||
-- none
|
||||
1
database/src/sql/version-0.0.12-0.0.13.sql
Normal file
1
database/src/sql/version-0.0.12-0.0.13.sql
Normal file
@@ -0,0 +1 @@
|
||||
-- none
|
||||
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
database/src/sql/version-0.0.15-0.0.16.sql
Normal file
1
database/src/sql/version-0.0.15-0.0.16.sql
Normal file
@@ -0,0 +1 @@
|
||||
-- none
|
||||
1
database/src/sql/version-0.0.16-0.0.17.sql
Normal file
1
database/src/sql/version-0.0.16-0.0.17.sql
Normal file
@@ -0,0 +1 @@
|
||||
-- none
|
||||
1
database/src/sql/version-0.0.17-0.0.18.sql
Normal file
1
database/src/sql/version-0.0.17-0.0.18.sql
Normal file
@@ -0,0 +1 @@
|
||||
-- none
|
||||
1
database/src/sql/version-0.0.18-0.0.19.sql
Normal file
1
database/src/sql/version-0.0.18-0.0.19.sql
Normal file
@@ -0,0 +1 @@
|
||||
-- none
|
||||
@@ -1,7 +1,7 @@
|
||||
{
|
||||
"name": "cicd",
|
||||
"private": true,
|
||||
"version": "0.0.10",
|
||||
"version": "0.0.19",
|
||||
"description": "Node.js Rest Apis with Express, Sequelize & PostgreSQL",
|
||||
"scripts": {
|
||||
"update:patch": "node scripts/update-version.js -patch",
|
||||
|
||||
Reference in New Issue
Block a user