Compare commits
21 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
1085ba4502 | ||
|
|
cc65eb1ba9 | ||
|
|
9b9df6f9c1 | ||
|
|
9d980e79c1 | ||
|
|
5a989e4a58 | ||
|
|
e489c6ef1d | ||
|
|
d7bca9f4a5 | ||
|
|
f4664288a9 | ||
|
|
eca0e35935 | ||
|
|
f8037f0d3a | ||
|
|
fc785b1f87 | ||
|
|
49a3eeee60 | ||
|
|
ea562a4929 | ||
|
|
5bb81c50b5 | ||
|
|
150f415e69 | ||
|
|
92d85fab85 | ||
|
|
72073176d2 | ||
|
|
532000fc31 | ||
|
|
0a7169ec69 | ||
|
|
b8e748103d | ||
|
|
7bd7dc0e62 |
@@ -131,10 +131,9 @@ steps:
|
|||||||
else
|
else
|
||||||
echo "⏭️ Pas de publication (version_type=none)"
|
echo "⏭️ Pas de publication (version_type=none)"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
depends_on: [ package ]
|
depends_on: [ package ]
|
||||||
|
|
||||||
# Étape 7: Commit et tag (après publication)
|
# Étape 7: Commit et tag
|
||||||
- name: commit_tag
|
- name: commit_tag
|
||||||
image: *git_image
|
image: *git_image
|
||||||
environment:
|
environment:
|
||||||
@@ -142,18 +141,23 @@ steps:
|
|||||||
from_secret: gitea_token
|
from_secret: gitea_token
|
||||||
commands: |
|
commands: |
|
||||||
source $CI_WORKSPACE/version.env
|
source $CI_WORKSPACE/version.env
|
||||||
|
if [ -d "/shared" ]; then
|
||||||
|
echo "Le répertoire shared existe"
|
||||||
|
ls -als /shared/
|
||||||
|
else
|
||||||
|
exit -1
|
||||||
|
fi
|
||||||
if [ "$version_type" != "none" ]; then
|
if [ "$version_type" != "none" ]; then
|
||||||
git remote set-url origin http://oauth2:$GITEA_TOKEN@gitea.cicd.exygen.fr/$CI_REPO_OWNER/$CI_REPO_NAME.git
|
git remote set-url origin http://oauth2:$GITEA_TOKEN@gitea.cicd.exygen.fr/$CI_REPO_OWNER/$CI_REPO_NAME.git
|
||||||
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"
|
||||||
|
|
||||||
echo "ℹ️ Save pipeline info"
|
echo "ℹ️ Save pipeline info"
|
||||||
env
|
BUILD=/shared/builds/$CI_REPO_REMOTE_ID/$CI_PIPELINE_NUMBER
|
||||||
mkdir -p .woodpecker/builds/
|
mkdir -p /shared/builds/$CI_REPO_REMOTE_ID/
|
||||||
echo NEW_VERSION=$NEW_VERSION > .woodpecker/builds/$CI_REPO_ID/$CI_PIPELINE_ID/$CI_PIPELINE_NUMBER
|
echo NEW_VERSION=$NEW_VERSION > $BUILD
|
||||||
echo NEW_VERSION=$NEW_VERSION > .woodpecker/builds/$CI_PIPELINE_NUMBER
|
echo NEW_VERSION=$NEW_VERSION > $BUILD
|
||||||
git add .woodpecker/builds/$CI_PIPELINE_NUMBER 2>/dev/null || true
|
git add $BUILD 2>/dev/null || true
|
||||||
|
|
||||||
echo "ℹ️ add generated files (sql)"
|
echo "ℹ️ add generated files (sql)"
|
||||||
git add ./database/src/sql/*.sql 2>/dev/null || true
|
git add ./database/src/sql/*.sql 2>/dev/null || true
|
||||||
@@ -175,7 +179,7 @@ steps:
|
|||||||
else
|
else
|
||||||
echo "⚠️ Aucun changement à commiter"
|
echo "⚠️ Aucun changement à commiter"
|
||||||
fi
|
fi
|
||||||
ls -als
|
ls -alsR /shared/builds/
|
||||||
depends_on: [ publish ]
|
depends_on: [ publish ]
|
||||||
|
|
||||||
# Étape 8: Déclencher le déploiement
|
# Étape 8: Déclencher le déploiement
|
||||||
@@ -210,7 +214,6 @@ steps:
|
|||||||
when:
|
when:
|
||||||
- event: never
|
- event: never
|
||||||
|
|
||||||
|
|
||||||
- name: trigger-deployment2
|
- name: trigger-deployment2
|
||||||
image: woodpeckerci/plugin-trigger
|
image: woodpeckerci/plugin-trigger
|
||||||
settings:
|
settings:
|
||||||
|
|||||||
@@ -1 +0,0 @@
|
|||||||
NEW_VERSION=0.0.24
|
|
||||||
@@ -1 +0,0 @@
|
|||||||
NEW_VERSION=0.0.25
|
|
||||||
@@ -1 +0,0 @@
|
|||||||
NEW_VERSION=0.0.26
|
|
||||||
@@ -1 +0,0 @@
|
|||||||
NEW_VERSION=0.0.27
|
|
||||||
@@ -1 +0,0 @@
|
|||||||
0.0.21
|
|
||||||
@@ -1 +0,0 @@
|
|||||||
NEW_VERSION=0.0.22
|
|
||||||
@@ -1 +0,0 @@
|
|||||||
NEW_VERSION=0.0.23
|
|
||||||
@@ -8,14 +8,9 @@ steps:
|
|||||||
image: curlimages/curl:latest
|
image: curlimages/curl:latest
|
||||||
commands: |
|
commands: |
|
||||||
env
|
env
|
||||||
echo CI_PIPELINE_PARENT=$CI_PIPELINE_PARENT
|
BUILD=/shared/builds/$CI_REPO_REMOTE_ID/$CI_PIPELINE_PARENT
|
||||||
echo CI_COMMIT_TAG=$CI_COMMIT_TAG
|
ls -alsR /shared/builds/
|
||||||
echo CI_PIPELINE_EVENT=$CI_PIPELINE_EVENT
|
source $BUILD
|
||||||
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
|
|
||||||
ls -als .woodpecker/builds
|
|
||||||
source .woodpecker/builds/$CI_PREV_PIPELINE_NUMBER
|
|
||||||
echo new version: ${NEW_VERSION}
|
echo new version: ${NEW_VERSION}
|
||||||
curl -o /tmp/${CI_REPO_NAME}-${NEW_VERSION}.tar \
|
curl -o /tmp/${CI_REPO_NAME}-${NEW_VERSION}.tar \
|
||||||
"https://nexus.cicd.exygen.fr/repository/domaine-passignat/apps/${CI_REPO_NAME}/${NEW_VERSION}/${CI_REPO_NAME}-${VERSION}.tar"
|
"https://nexus.cicd.exygen.fr/repository/domaine-passignat/apps/${CI_REPO_NAME}/${NEW_VERSION}/${CI_REPO_NAME}-${VERSION}.tar"
|
||||||
|
|||||||
1
database/src/sql/version-0.0.27-0.0.28.sql
Normal file
1
database/src/sql/version-0.0.27-0.0.28.sql
Normal file
@@ -0,0 +1 @@
|
|||||||
|
-- none
|
||||||
1
database/src/sql/version-0.0.28-0.0.29.sql
Normal file
1
database/src/sql/version-0.0.28-0.0.29.sql
Normal file
@@ -0,0 +1 @@
|
|||||||
|
-- none
|
||||||
1
database/src/sql/version-0.0.29-0.0.30.sql
Normal file
1
database/src/sql/version-0.0.29-0.0.30.sql
Normal file
@@ -0,0 +1 @@
|
|||||||
|
-- none
|
||||||
1
database/src/sql/version-0.0.30-0.0.31.sql
Normal file
1
database/src/sql/version-0.0.30-0.0.31.sql
Normal file
@@ -0,0 +1 @@
|
|||||||
|
-- none
|
||||||
1
database/src/sql/version-0.0.31-0.0.32.sql
Normal file
1
database/src/sql/version-0.0.31-0.0.32.sql
Normal file
@@ -0,0 +1 @@
|
|||||||
|
-- none
|
||||||
1
database/src/sql/version-0.0.32-0.0.33.sql
Normal file
1
database/src/sql/version-0.0.32-0.0.33.sql
Normal file
@@ -0,0 +1 @@
|
|||||||
|
-- none
|
||||||
1
database/src/sql/version-0.0.33-0.0.34.sql
Normal file
1
database/src/sql/version-0.0.33-0.0.34.sql
Normal file
@@ -0,0 +1 @@
|
|||||||
|
-- none
|
||||||
1
database/src/sql/version-0.0.34-0.0.35.sql
Normal file
1
database/src/sql/version-0.0.34-0.0.35.sql
Normal file
@@ -0,0 +1 @@
|
|||||||
|
-- none
|
||||||
1
database/src/sql/version-0.0.35-0.0.36.sql
Normal file
1
database/src/sql/version-0.0.35-0.0.36.sql
Normal file
@@ -0,0 +1 @@
|
|||||||
|
-- none
|
||||||
@@ -1,7 +1,7 @@
|
|||||||
{
|
{
|
||||||
"name": "cicd",
|
"name": "cicd",
|
||||||
"private": true,
|
"private": true,
|
||||||
"version": "0.0.27",
|
"version": "0.0.36",
|
||||||
"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