Compare commits
16 Commits
v0.0.3
...
e63b6c4e3f
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
e63b6c4e3f | ||
|
|
9f5f919ff9 | ||
|
|
bae02f80e2 | ||
|
|
0aa601d144 | ||
|
|
64b3ceff3f | ||
|
|
692c001e9b | ||
|
|
f6019b9b5d | ||
|
|
e4e8eadd6d | ||
|
|
a89ba6a734 | ||
|
|
e00c052ae7 | ||
|
|
e1d0ab7eef | ||
|
|
769550c990 | ||
|
|
42f7166a11 | ||
|
|
9ed7fd6fb2 | ||
|
|
040c01d8ce | ||
|
|
8b85904333 |
@@ -9,6 +9,7 @@ variables:
|
||||
- &git_image alpine/git
|
||||
- &curl_image curlimages/curl:latest
|
||||
|
||||
|
||||
steps:
|
||||
# Étape 1: Nettoyage du projet
|
||||
- name: clean_project
|
||||
@@ -112,13 +113,14 @@ steps:
|
||||
from_secret: nexus_username
|
||||
NEXUS_PASSWORD:
|
||||
from_secret: nexus_password
|
||||
NEXUS_REPOSITORY: domaine-passignat
|
||||
commands: |
|
||||
source $CI_WORKSPACE/version.env
|
||||
echo $CI_REPO_OWNER
|
||||
echo $CI_REPO_NAME
|
||||
|
||||
if [ "$version_type" != "none" ]; then
|
||||
|
||||
echo "📦 Publication de la version $NEW_VERSION : $ARTIFACT"
|
||||
|
||||
if [ ! -f "$ARTIFACT_FILE" ]; then
|
||||
echo "❌ Fichier introuvable: $ARTIFACT_FILE"
|
||||
ls -la $ARTIFACT_FILE
|
||||
@@ -130,8 +132,7 @@ steps:
|
||||
-F "raw.directory=apps/$CI_REPO_NAME/$NEW_VERSION" \
|
||||
-F "raw.asset1=@$ARTIFACT_FILE" \
|
||||
-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=$NEXUS_REPOSITORY
|
||||
echo "✅ Artefact publié"
|
||||
else
|
||||
echo "⏭️ Pas de publication (version_type=none)"
|
||||
@@ -146,10 +147,6 @@ steps:
|
||||
GITEA_TOKEN:
|
||||
from_secret: gitea_token
|
||||
commands: |
|
||||
pwd
|
||||
ls -als
|
||||
echo $CI_WORKSPACE
|
||||
echo $CI_WORKSPACE
|
||||
source $CI_WORKSPACE/version.env
|
||||
|
||||
if [ "$version_type" != "none" ]; then
|
||||
@@ -188,8 +185,8 @@ steps:
|
||||
source $CI_WORKSPACE/version.env
|
||||
|
||||
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 \
|
||||
"http://woodpecker.cicd.exygen.fr/api/repos/$CI_REPO_OWNER/$CI_REPO_NAME/pipelines" \
|
||||
-H "Authorization: Bearer $WOODPECKER_TOKEN" \
|
||||
|
||||
@@ -0,0 +1 @@
|
||||
-- none
|
||||
1
database/src/sql/version-0.0.3-0.0.4.sql
Normal file
1
database/src/sql/version-0.0.3-0.0.4.sql
Normal file
@@ -0,0 +1 @@
|
||||
-- none
|
||||
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
database/src/sql/version-0.0.7-0.0.8.sql
Normal file
1
database/src/sql/version-0.0.7-0.0.8.sql
Normal file
@@ -0,0 +1 @@
|
||||
-- none
|
||||
@@ -1,7 +1,7 @@
|
||||
{
|
||||
"name": "cicd",
|
||||
"private": true,
|
||||
"version": "0.0.3",
|
||||
"version": "0.0.8",
|
||||
"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