Compare commits
29 Commits
1e2cdf82e6
...
v0.0.22
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
b08a3913e7 | ||
|
|
ac4d180382 | ||
|
|
c5da967d34 | ||
|
|
e916154e4e | ||
|
|
69656f095d | ||
|
|
1cc3d5b5eb | ||
|
|
228ad14fa9 | ||
|
|
067acd0521 | ||
|
|
91af4b5739 | ||
|
|
e267aeb1ca | ||
|
|
4e5e8f0644 | ||
|
|
a253393f58 | ||
|
|
0b1308e8f0 | ||
|
|
838d7a42eb | ||
|
|
55b60e06da | ||
|
|
7ee90cba7c | ||
|
|
bbb29459f6 | ||
|
|
f564b38987 | ||
|
|
78cab3ffe2 | ||
|
|
f8dcae93c5 | ||
|
|
244f46418b | ||
|
|
c334f5ec09 | ||
|
|
9579676b0c | ||
|
|
10dd888152 | ||
|
|
d13bb14f34 | ||
|
|
350d3881f0 | ||
|
|
69b5c0017f | ||
|
|
08d234c8bc | ||
|
|
38a422e305 |
@@ -1,8 +1,6 @@
|
||||
when:
|
||||
- event: push
|
||||
branch: [ main ]
|
||||
- event: pull_request
|
||||
- event: manual
|
||||
|
||||
variables:
|
||||
- &node_image node:18-alpine
|
||||
@@ -14,7 +12,8 @@ steps:
|
||||
- name: clean_project
|
||||
image: *git_image
|
||||
commands: |
|
||||
|
||||
ls -als /
|
||||
touch /shared/build.txt
|
||||
echo "1 $CI_WORKSPACE"
|
||||
rm -rf dist
|
||||
rm -f $CI_WORKSPACE/build/version.env
|
||||
@@ -149,7 +148,14 @@ steps:
|
||||
git config user.email "woodpecker@exygen.fr"
|
||||
git config user.name "Woodpecker CI"
|
||||
|
||||
git add package.json ./database/src/sql/*.sql 2>/dev/null || true
|
||||
echo "ℹ️ Save pipeline info"
|
||||
mkdir -p .woodpecker/builds/
|
||||
echo NEW_VERSION=$NEW_VERSION > .woodpecker/builds/$CI_PIPELINE_NUMBER
|
||||
git add .woodpecker/builds/$CI_PIPELINE_NUMBER 2>/dev/null || true
|
||||
|
||||
echo "ℹ️ add generated files (sql)"
|
||||
git add ./database/src/sql/*.sql 2>/dev/null || true
|
||||
git add package.json 2>/dev/null || true
|
||||
|
||||
# Commiter uniquement s'il y a des changements
|
||||
if ! git diff --cached --quiet; then
|
||||
@@ -199,27 +205,30 @@ steps:
|
||||
echo "⏭️ Pas de déclenchement (version_type=none)"
|
||||
fi
|
||||
depends_on: [ commit_tag ]
|
||||
when:
|
||||
- event: never
|
||||
|
||||
|
||||
- name: trigger-deployment2
|
||||
image: woodpeckerci/plugin-trigger
|
||||
pipeline:
|
||||
|
||||
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: production
|
||||
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 ]
|
||||
depends_on: [ commit_tag ]
|
||||
when:
|
||||
- event: never
|
||||
|
||||
1
.woodpecker/builds/95
Normal file
1
.woodpecker/builds/95
Normal file
@@ -0,0 +1 @@
|
||||
0.0.21
|
||||
1
.woodpecker/builds/97
Normal file
1
.woodpecker/builds/97
Normal file
@@ -0,0 +1 @@
|
||||
NEW_VERSION=0.0.22
|
||||
@@ -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.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
database/src/sql/version-0.0.19-0.0.20.sql
Normal file
1
database/src/sql/version-0.0.19-0.0.20.sql
Normal file
@@ -0,0 +1 @@
|
||||
-- none
|
||||
1
database/src/sql/version-0.0.20-0.0.21.sql
Normal file
1
database/src/sql/version-0.0.20-0.0.21.sql
Normal file
@@ -0,0 +1 @@
|
||||
-- none
|
||||
1
database/src/sql/version-0.0.21-0.0.22.sql
Normal file
1
database/src/sql/version-0.0.21-0.0.22.sql
Normal file
@@ -0,0 +1 @@
|
||||
-- none
|
||||
@@ -1,7 +1,7 @@
|
||||
{
|
||||
"name": "cicd",
|
||||
"private": true,
|
||||
"version": "0.0.14",
|
||||
"version": "0.0.22",
|
||||
"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