Compare commits
27 Commits
v0.0.16
...
c4297c7c25
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
c4297c7c25 | ||
|
|
f89ccb0f63 | ||
|
|
0ba8dd27f0 | ||
|
|
b08a3913e7 | ||
|
|
ac4d180382 | ||
|
|
c5da967d34 | ||
|
|
e916154e4e | ||
|
|
69656f095d | ||
|
|
1cc3d5b5eb | ||
|
|
228ad14fa9 | ||
|
|
067acd0521 | ||
|
|
91af4b5739 | ||
|
|
e267aeb1ca | ||
|
|
4e5e8f0644 | ||
|
|
a253393f58 | ||
|
|
0b1308e8f0 | ||
|
|
838d7a42eb | ||
|
|
55b60e06da | ||
|
|
7ee90cba7c | ||
|
|
bbb29459f6 | ||
|
|
f564b38987 | ||
|
|
78cab3ffe2 | ||
|
|
f8dcae93c5 | ||
|
|
244f46418b | ||
|
|
c334f5ec09 | ||
|
|
9579676b0c | ||
|
|
10dd888152 |
@@ -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
|
||||||
@@ -14,7 +12,8 @@ steps:
|
|||||||
- name: clean_project
|
- name: clean_project
|
||||||
image: *git_image
|
image: *git_image
|
||||||
commands: |
|
commands: |
|
||||||
|
ls -als /
|
||||||
|
touch /shared/build.txt
|
||||||
echo "1 $CI_WORKSPACE"
|
echo "1 $CI_WORKSPACE"
|
||||||
rm -rf dist
|
rm -rf dist
|
||||||
rm -f $CI_WORKSPACE/build/version.env
|
rm -f $CI_WORKSPACE/build/version.env
|
||||||
@@ -149,7 +148,14 @@ steps:
|
|||||||
git config user.email "woodpecker@exygen.fr"
|
git config user.email "woodpecker@exygen.fr"
|
||||||
git config user.name "Woodpecker CI"
|
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
|
# Commiter uniquement s'il y a des changements
|
||||||
if ! git diff --cached --quiet; then
|
if ! git diff --cached --quiet; then
|
||||||
@@ -199,6 +205,9 @@ 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
|
||||||
image: woodpeckerci/plugin-trigger
|
image: woodpeckerci/plugin-trigger
|
||||||
@@ -207,6 +216,7 @@ steps:
|
|||||||
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
|
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])
|
||||||
@@ -220,3 +230,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
|
||||||
|
|||||||
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,13 +1,18 @@
|
|||||||
# Documentation: https://woodpecker-ci.org/docs/usage/workflow-syntax
|
# Documentation: https://woodpecker-ci.org/docs/usage/workflow-syntax
|
||||||
|
|
||||||
when:
|
when:
|
||||||
- event: deployment
|
- event: [ deployment,manual ]
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- name: get-artifact
|
- name: get-artifact
|
||||||
image: curlimages/curl:latest
|
image: curlimages/curl:latest
|
||||||
commands: |
|
commands: |
|
||||||
VERSION=${CI_COMMIT_TAG#v}
|
echo CI_PIPELINE_PARENT=$CI_PIPELINE_PARENT
|
||||||
|
echo CI_COMMIT_TAG=$CI_COMMIT_TAG
|
||||||
|
echo CI_PIPELINE_EVENT=$CI_PIPELINE_EVENT
|
||||||
|
echo CI_PIPELINE_NUMBER=$CI_PIPELINE_NUMBER
|
||||||
|
echo CI_PREV_PIPELINE_NUMBER=$CI_PREV_PIPELINE_NUMBER
|
||||||
|
echo CI_PREV_PIPELINE_PARENT=$CI_PREV_PIPELINE_PARENT
|
||||||
curl -o /tmp/${CI_REPO_NAME}-${VERSION}.tar \
|
curl -o /tmp/${CI_REPO_NAME}-${VERSION}.tar \
|
||||||
"https://nexus.cicd.exygen.fr/repository/domaine-passignat/apps/${CI_REPO_NAME}/${VERSION}/${CI_REPO_NAME}-${VERSION}.tar"
|
"https://nexus.cicd.exygen.fr/repository/domaine-passignat/apps/${CI_REPO_NAME}/${VERSION}/${CI_REPO_NAME}-${VERSION}.tar"
|
||||||
|
|
||||||
|
|||||||
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",
|
"name": "cicd",
|
||||||
"private": true,
|
"private": true,
|
||||||
"version": "0.0.16",
|
"version": "0.0.22",
|
||||||
"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