Compare commits
7 Commits
769550c990
...
v0.0.7
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
64b3ceff3f | ||
|
|
692c001e9b | ||
|
|
f6019b9b5d | ||
|
|
e4e8eadd6d | ||
|
|
a89ba6a734 | ||
|
|
e00c052ae7 | ||
|
|
e1d0ab7eef |
@@ -8,6 +8,7 @@ variables:
|
|||||||
- &node_image node:18-alpine
|
- &node_image node:18-alpine
|
||||||
- &git_image alpine/git
|
- &git_image alpine/git
|
||||||
- &curl_image curlimages/curl:latest
|
- &curl_image curlimages/curl:latest
|
||||||
|
- &repository domaine-passignat
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
# Étape 1: Nettoyage du projet
|
# Étape 1: Nettoyage du projet
|
||||||
@@ -118,9 +119,7 @@ steps:
|
|||||||
echo $CI_REPO_NAME
|
echo $CI_REPO_NAME
|
||||||
|
|
||||||
if [ "$version_type" != "none" ]; then
|
if [ "$version_type" != "none" ]; then
|
||||||
|
|
||||||
echo "📦 Publication de la version $NEW_VERSION : $ARTIFACT"
|
echo "📦 Publication de la version $NEW_VERSION : $ARTIFACT"
|
||||||
|
|
||||||
if [ ! -f "$ARTIFACT_FILE" ]; then
|
if [ ! -f "$ARTIFACT_FILE" ]; then
|
||||||
echo "❌ Fichier introuvable: $ARTIFACT_FILE"
|
echo "❌ Fichier introuvable: $ARTIFACT_FILE"
|
||||||
ls -la $ARTIFACT_FILE
|
ls -la $ARTIFACT_FILE
|
||||||
@@ -132,8 +131,7 @@ steps:
|
|||||||
-F "raw.directory=apps/$CI_REPO_NAME/$NEW_VERSION" \
|
-F "raw.directory=apps/$CI_REPO_NAME/$NEW_VERSION" \
|
||||||
-F "raw.asset1=@$ARTIFACT_FILE" \
|
-F "raw.asset1=@$ARTIFACT_FILE" \
|
||||||
-F "raw.asset1.filename=$ARTIFACT" \
|
-F "raw.asset1.filename=$ARTIFACT" \
|
||||||
http://nexus.cicd.exygen.fr/service/rest/v1/components?repository=domaine-passignat
|
http://nexus.cicd.exygen.fr/service/rest/v1/components?repository=*repository
|
||||||
|
|
||||||
echo "✅ Artefact publié"
|
echo "✅ Artefact publié"
|
||||||
else
|
else
|
||||||
echo "⏭️ Pas de publication (version_type=none)"
|
echo "⏭️ Pas de publication (version_type=none)"
|
||||||
@@ -187,7 +185,7 @@ steps:
|
|||||||
|
|
||||||
if [ "$version_type" != "none" ]; then
|
if [ "$version_type" != "none" ]; then
|
||||||
echo "🚀 Déclenchement du déploiement pour la version $NEW_VERSION"
|
echo "🚀 Déclenchement du déploiement pour la version $NEW_VERSION"
|
||||||
|
echo "http://woodpecker.cicd.exygen.fr/api/repos/$CI_REPO_OWNER/$CI_REPO_NAME/pipelines"
|
||||||
curl -X POST \
|
curl -X POST \
|
||||||
"http://woodpecker.cicd.exygen.fr/api/repos/$CI_REPO_OWNER/$CI_REPO_NAME/pipelines" \
|
"http://woodpecker.cicd.exygen.fr/api/repos/$CI_REPO_OWNER/$CI_REPO_NAME/pipelines" \
|
||||||
-H "Authorization: Bearer $WOODPECKER_TOKEN" \
|
-H "Authorization: Bearer $WOODPECKER_TOKEN" \
|
||||||
|
|||||||
1
database/src/sql/version-0.0.4-0.0.5.sql
Normal file
1
database/src/sql/version-0.0.4-0.0.5.sql
Normal file
@@ -0,0 +1 @@
|
|||||||
|
-- none
|
||||||
1
database/src/sql/version-0.0.5-0.0.6.sql
Normal file
1
database/src/sql/version-0.0.5-0.0.6.sql
Normal file
@@ -0,0 +1 @@
|
|||||||
|
-- none
|
||||||
1
database/src/sql/version-0.0.6-0.0.7.sql
Normal file
1
database/src/sql/version-0.0.6-0.0.7.sql
Normal file
@@ -0,0 +1 @@
|
|||||||
|
-- none
|
||||||
@@ -1,7 +1,7 @@
|
|||||||
{
|
{
|
||||||
"name": "cicd",
|
"name": "cicd",
|
||||||
"private": true,
|
"private": true,
|
||||||
"version": "0.0.4",
|
"version": "0.0.7",
|
||||||
"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