Compare commits
14 Commits
8bf8e5448a
...
v0.0.18
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
78cab3ffe2 | ||
|
|
f8dcae93c5 | ||
|
|
244f46418b | ||
|
|
c334f5ec09 | ||
|
|
9579676b0c | ||
|
|
10dd888152 | ||
|
|
d13bb14f34 | ||
|
|
350d3881f0 | ||
|
|
69b5c0017f | ||
|
|
08d234c8bc | ||
|
|
38a422e305 | ||
|
|
1e2cdf82e6 | ||
|
|
7c88b67418 | ||
|
|
06f135a005 |
@@ -1,8 +1,6 @@
|
|||||||
when:
|
when:
|
||||||
- event: push
|
- event: push
|
||||||
branch: [ main ]
|
branch: [ main ]
|
||||||
- event: pull_request
|
|
||||||
- event: manual
|
|
||||||
|
|
||||||
variables:
|
variables:
|
||||||
- &node_image node:18-alpine
|
- &node_image node:18-alpine
|
||||||
@@ -199,6 +197,8 @@ steps:
|
|||||||
echo "⏭️ Pas de déclenchement (version_type=none)"
|
echo "⏭️ Pas de déclenchement (version_type=none)"
|
||||||
fi
|
fi
|
||||||
depends_on: [ commit_tag ]
|
depends_on: [ commit_tag ]
|
||||||
|
when:
|
||||||
|
- event: never
|
||||||
|
|
||||||
|
|
||||||
- name: trigger-deployment2
|
- name: trigger-deployment2
|
||||||
@@ -207,13 +207,14 @@ steps:
|
|||||||
# 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
|
||||||
|
deploy_pipeline: ${CI_PIPELINE_NUMBER}
|
||||||
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_to: production
|
||||||
# (Optionnel) Transmettre des variables au pipeline déclenché (ex: une version)
|
# (Optionnel) Transmettre des variables au pipeline déclenché (ex: une version)
|
||||||
params:
|
params:
|
||||||
- VERSION=${NEW_VERSION}
|
- VERSION=${NEW_VERSION}
|
||||||
@@ -221,3 +222,5 @@ steps:
|
|||||||
wait: true
|
wait: true
|
||||||
# Déclenche cette étape uniquement après une publication réussie
|
# Déclenche cette étape uniquement après une publication réussie
|
||||||
depends_on: [ commit_tag ]
|
depends_on: [ commit_tag ]
|
||||||
|
when:
|
||||||
|
- event: never
|
||||||
|
|||||||
10
.woodpecker/test.yml
Normal file
10
.woodpecker/test.yml
Normal file
@@ -0,0 +1,10 @@
|
|||||||
|
when:
|
||||||
|
- event: [ push, deployment, manual ]
|
||||||
|
|
||||||
|
steps:
|
||||||
|
- name: test
|
||||||
|
image: alpine
|
||||||
|
commands: |
|
||||||
|
echo "Pipeline déclenché !"
|
||||||
|
echo "Event: ${CI_PIPELINE_EVENT}"
|
||||||
|
echo "Deploy to: ${CI_PIPELINE_DEPLOY_TARGET}"
|
||||||
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,7 +1,7 @@
|
|||||||
{
|
{
|
||||||
"name": "cicd",
|
"name": "cicd",
|
||||||
"private": true,
|
"private": true,
|
||||||
"version": "0.0.14",
|
"version": "0.0.18",
|
||||||
"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